mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 08:50:57 +01:00
configure_system: Hide locale warn at start
This commit is contained in:
parent
b570b719de
commit
81860b4317
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,7 @@ ConfigureSystem::ConfigureSystem(
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const auto locale_check = [this](int index) {
|
const auto locale_check = [this]() {
|
||||||
const auto region_index = combo_region->currentIndex();
|
const auto region_index = combo_region->currentIndex();
|
||||||
const auto language_index = combo_language->currentIndex();
|
const auto language_index = combo_language->currentIndex();
|
||||||
const bool valid_locale = IsValidLocale(region_index, language_index);
|
const bool valid_locale = IsValidLocale(region_index, language_index);
|
||||||
|
@ -84,6 +84,9 @@ ConfigureSystem::ConfigureSystem(
|
||||||
connect(combo_language, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check);
|
connect(combo_language, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check);
|
||||||
connect(combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check);
|
connect(combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check);
|
||||||
|
|
||||||
|
ui->label_warn_invalid_locale->setVisible(false);
|
||||||
|
locale_check();
|
||||||
|
|
||||||
SetConfiguration();
|
SetConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue