mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
refactor: Remove inline ATC settings (all/in range, valid freqs.)
Fixes #193
This commit is contained in:
@@ -70,7 +70,6 @@ namespace BlackGui::Components
|
||||
|
||||
readOnlyCheckbox(ui->cb_SettingsActionHotkeys, !CCacheSettingsUtils::hasOtherVersionSettingsFile(info, m_settingsActionHotkeys.getFilename()));
|
||||
readOnlyCheckbox(ui->cb_SettingsTextMessages, !CCacheSettingsUtils::hasOtherVersionSettingsFile(info, m_settingsTextMessage.getFilename()));
|
||||
readOnlyCheckbox(ui->cb_SettingsAtcStations, !CCacheSettingsUtils::hasOtherVersionSettingsFile(info, m_settingsAtcStations.getFilename()));
|
||||
readOnlyCheckbox(ui->cb_SettingsDirectories, !CCacheSettingsUtils::hasOtherVersionSettingsFile(info, m_settingsDirectories.getFilename()));
|
||||
|
||||
readOnlyCheckbox(ui->cb_SettingsConsolidation, !CCacheSettingsUtils::hasOtherVersionSettingsFile(info, m_settingsConsolidation.getFilename()));
|
||||
@@ -119,7 +118,6 @@ namespace BlackGui::Components
|
||||
void CCopySettingsAndCachesComponent::initMisc()
|
||||
{
|
||||
ui->cb_SettingsActionHotkeys->setText(checkBoxText(TActionHotkeys::humanReadable(), true));
|
||||
ui->cb_SettingsAtcStations->setText(checkBoxText(TAtcStationsSettings::humanReadable(), true));
|
||||
ui->cb_SettingsTextMessages->setText(checkBoxText(TextMessageSettings::humanReadable(), true));
|
||||
ui->cb_SettingsDirectories->setText(checkBoxText(TDirectorySettings::humanReadable(), true));
|
||||
}
|
||||
@@ -362,20 +360,6 @@ namespace BlackGui::Components
|
||||
}
|
||||
}
|
||||
|
||||
if (ui->cb_SettingsAtcStations->isChecked())
|
||||
{
|
||||
const QString joStr = CCacheSettingsUtils::otherVersionSettingsFileContent(otherVersionInfo, m_settingsAtcStations.getFilename());
|
||||
if (!joStr.isEmpty())
|
||||
{
|
||||
const CAtcStationsSettings settings = CAtcStationsSettings::fromJsonNoThrow(joStr, true, success, errMsg);
|
||||
if (this->parsingMessage(success, errMsg, m_settingsAtcStations.getKey()))
|
||||
{
|
||||
this->displayStatusMessage(m_settingsAtcStations.setAndSave(settings), settings.toQString(true));
|
||||
copied++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ui->cb_SettingsTextMessages->isChecked())
|
||||
{
|
||||
const QString joStr = CCacheSettingsUtils::otherVersionSettingsFileContent(otherVersionInfo, m_settingsTextMessage.getFilename());
|
||||
|
||||
Reference in New Issue
Block a user