mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Init simulator display field, shorter text, typo
This commit is contained in:
@@ -64,6 +64,7 @@ namespace BlackGui
|
||||
const CSimulatorInfo simulator = ui->comp_SimulatorSelector->getValue();
|
||||
if (simulator.isSingleSimulator())
|
||||
{
|
||||
ui->le_Simulator->setText(simulator.toQString(true));
|
||||
m_simulator = simulator;
|
||||
const bool success = this->initModelLoader(simulator, IAircraftModelLoader::CacheOnly);
|
||||
if (!success)
|
||||
|
||||
@@ -73,6 +73,7 @@ namespace BlackGui
|
||||
ui->comp_SimulatorSelector->setMode(CSimulatorSelector::RadioButtons);
|
||||
ui->comp_SimulatorSelector->setRememberSelectionAndSetToLastSelection();
|
||||
const CSimulatorInfo simulator = ui->comp_SimulatorSelector->getValue();
|
||||
ui->le_Simulator->setText(simulator.toQString(true));
|
||||
|
||||
//! \fixme maybe it would be better to set those in stylesheet file
|
||||
ui->pb_SaveAsSetForSimulator->setStyleSheet("padding-left: 3px; padding-right: 3px;");
|
||||
@@ -263,8 +264,9 @@ namespace BlackGui
|
||||
ui->pb_SaveAsSetForSimulator->setEnabled(canSave);
|
||||
if (canSave)
|
||||
{
|
||||
static const QString ss("save %1");
|
||||
this->setSaveFileName(this->getModelSetSimulator());
|
||||
ui->pb_SaveAsSetForSimulator->setText("save for " + this->getModelSetSimulator().toQString(true));
|
||||
ui->pb_SaveAsSetForSimulator->setText(ss.arg(this->getModelSetSimulator().toQString(true)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace BlackGui
|
||||
bool loadOnlyIfNotEmpty = true;
|
||||
if (m_modelsDialog->getOwnModelsCount() > 0)
|
||||
{
|
||||
const QMessageBox::StandardButton reply = QMessageBox::warning(this->mainWindow(), "Model loading", "Reload the models?\nThe xisting cache data will we overridden.", QMessageBox::Yes | QMessageBox::No);
|
||||
const QMessageBox::StandardButton reply = QMessageBox::warning(this->mainWindow(), "Model loading", "Reload the models?\nThe existing cache data will we overridden.", QMessageBox::Yes | QMessageBox::No);
|
||||
if (reply == QMessageBox::Yes) { loadOnlyIfNotEmpty = false; }
|
||||
}
|
||||
m_modelsDialog->requestModelsInBackground(simulator, loadOnlyIfNotEmpty);
|
||||
|
||||
Reference in New Issue
Block a user