mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Some minor improvements
* Allow to toggle word wrap for text messages * set default ICAO code when simulator isn't connected
This commit is contained in:
@@ -345,7 +345,7 @@ namespace BlackGui
|
||||
Q_ASSERT(this->getIContextOwnAircraft());
|
||||
Q_ASSERT(this->getIContextSimulator());
|
||||
|
||||
static const CAircraftIcao defaultIcao("C172", "L1P", "FOO", "", ""); // default values
|
||||
static const CAircraftIcao defaultIcao("C172", "L1P", "", "", ""); // default values
|
||||
CAircraftIcao icao;
|
||||
|
||||
bool simConnected = this->getIContextSimulator() && this->getIContextSimulator()->isSimulating();
|
||||
@@ -367,6 +367,7 @@ namespace BlackGui
|
||||
//! \todo Currently not working in OBS mode
|
||||
this->ui->gbp_LoginMode->setLoginMode(INetwork::LoginNormal);
|
||||
this->ui->le_SimulatorModel->setText("No simulator");
|
||||
icao = defaultIcao;
|
||||
}
|
||||
|
||||
if (icao.hasAircraftDesignator())
|
||||
|
||||
Reference in New Issue
Block a user