diff options
author | Tayou <31988415+TayouVR@users.noreply.github.com> | 2023-07-13 01:56:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 01:56:12 +0200 |
commit | 94d4d12ee0a12572b2b661003f10cfbdda1b434a (patch) | |
tree | bf6a50a370167f53cbae4ef852c38de91ac8ffde /launcher/Application.cpp | |
parent | 9499066375d1d5728155a92b51727dfc614044bc (diff) | |
parent | 76cc8ce0437b7047ee984993daab57b2605f52a6 (diff) | |
download | PrismLauncher-94d4d12ee0a12572b2b661003f10cfbdda1b434a.tar.gz PrismLauncher-94d4d12ee0a12572b2b661003f10cfbdda1b434a.tar.bz2 PrismLauncher-94d4d12ee0a12572b2b661003f10cfbdda1b434a.zip |
Merge pull request #1345 from Trial97/time2
feat:Added option to use system locale
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..5aa9efc4 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("UseSystemLocale", 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; |