mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-11 20:29:47 +08:00
refs #93, re-read ATIS by pressing button from GUI
This commit is contained in:
@@ -63,7 +63,6 @@ void MainWindow::onlineAtcStationSelected(QModelIndex index)
|
||||
if (!infoMessage.isEmpty()) infoMessage.append("\n\n");
|
||||
infoMessage.append(stationClicked.getMetar().getMessage());
|
||||
}
|
||||
|
||||
this->ui->te_AtcStationsOnlineInfo->setText(infoMessage);
|
||||
}
|
||||
|
||||
@@ -83,6 +82,16 @@ void MainWindow::getMetar(const QString &airportIcaoCode)
|
||||
this->ui->te_AtcStationsOnlineInfo->setText(metar.getMessage());
|
||||
}
|
||||
|
||||
/*
|
||||
* Get METAR
|
||||
*/
|
||||
void MainWindow::requestAtis()
|
||||
{
|
||||
if (!this->isContextNetworkAvailableCheck()) return;
|
||||
if (!this->m_contextNetwork->isConnected()) return;
|
||||
this->m_contextNetwork->requestAtisUpdates();
|
||||
}
|
||||
|
||||
/*
|
||||
* ATC station tab changed are changed
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user