From 81860b431753719322e98435577d0981d55ea6d7 Mon Sep 17 00:00:00 2001
From: lat9nq <22451773+lat9nq@users.noreply.github.com>
Date: Mon, 5 Jun 2023 16:03:45 -0400
Subject: [PATCH] configure_system: Hide locale warn at start

---
 src/yuzu/configuration/configure_system.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp
index 5fe3c4a7f5..ae59d2ee7a 100644
--- a/src/yuzu/configuration/configure_system.cpp
+++ b/src/yuzu/configuration/configure_system.cpp
@@ -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 language_index = combo_language->currentIndex();
         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_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check);
 
+    ui->label_warn_invalid_locale->setVisible(false);
+    locale_check();
+
     SetConfiguration();
 }