diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-11 18:05:43 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-11 18:05:43 +0300 |
commit | f0d2aab784fd0ff0fc495d5f0c44715887741eb1 (patch) | |
tree | 93f247c4f4c620cf8b8020a37011bf3c38ee25f7 /launcher/Application.cpp | |
parent | 640aaa8c23d714ce17bc8e78754af6219abc6466 (diff) | |
download | PrismLauncher-f0d2aab784fd0ff0fc495d5f0c44715887741eb1.tar.gz PrismLauncher-f0d2aab784fd0ff0fc495d5f0c44715887741eb1.tar.bz2 PrismLauncher-f0d2aab784fd0ff0fc495d5f0c44715887741eb1.zip |
feat:Added option to use system locale
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r-- | launcher/Application.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 7858d713..86005ef7 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -568,6 +568,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) // Language m_settings->registerSetting("Language", QString()); + m_settings->registerSetting("UseSystemLocales", false); // Console m_settings->registerSetting("ShowConsole", false); @@ -918,12 +919,7 @@ bool Application::createSetupWizard() } return false; }(); - bool languageRequired = [&]() - { - if (settings()->get("Language").toString().isEmpty()) - return true; - return false; - }(); + bool languageRequired = settings()->get("Language").toString().isEmpty(); bool pasteInterventionRequired = settings()->get("PastebinURL") != ""; bool themeInterventionRequired = settings()->get("ApplicationTheme") == ""; bool wizardRequired = javaRequired || languageRequired || pasteInterventionRequired || themeInterventionRequired; |