diff options
| author | 2023-06-05 16:03:45 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:07 -0400 | |
| commit | 81860b431753719322e98435577d0981d55ea6d7 (patch) | |
| tree | 7f9524c7aa6c141156ad6b51a1e16c8d88e5e5f4 /src | |
| parent | shared_widget: Force min width of 100 for restore button (diff) | |
| download | yuzu-81860b431753719322e98435577d0981d55ea6d7.tar.gz yuzu-81860b431753719322e98435577d0981d55ea6d7.tar.xz yuzu-81860b431753719322e98435577d0981d55ea6d7.zip | |
configure_system: Hide locale warn at start
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index 5fe3c4a7f..ae59d2ee7 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp | |||
| @@ -68,7 +68,7 @@ ConfigureSystem::ConfigureSystem( | |||
| 68 | } | 68 | } |
| 69 | }); | 69 | }); |
| 70 | 70 | ||
| 71 | const auto locale_check = [this](int index) { | 71 | const auto locale_check = [this]() { |
| 72 | const auto region_index = combo_region->currentIndex(); | 72 | const auto region_index = combo_region->currentIndex(); |
| 73 | const auto language_index = combo_language->currentIndex(); | 73 | const auto language_index = combo_language->currentIndex(); |
| 74 | const bool valid_locale = IsValidLocale(region_index, language_index); | 74 | const bool valid_locale = IsValidLocale(region_index, language_index); |
| @@ -84,6 +84,9 @@ ConfigureSystem::ConfigureSystem( | |||
| 84 | connect(combo_language, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); | 84 | connect(combo_language, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); |
| 85 | connect(combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); | 85 | connect(combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); |
| 86 | 86 | ||
| 87 | ui->label_warn_invalid_locale->setVisible(false); | ||
| 88 | locale_check(); | ||
| 89 | |||
| 87 | SetConfiguration(); | 90 | SetConfiguration(); |
| 88 | } | 91 | } |
| 89 | 92 | ||