diff options
author | Tayou <tayou@gmx.net> | 2023-01-09 16:58:27 +0100 |
---|---|---|
committer | Tayou <tayou@gmx.net> | 2023-01-10 16:06:42 +0100 |
commit | 6daa45783894fc7517917d6f6df0deaac1a41ba3 (patch) | |
tree | 6e4386f9cd76f3437d16d88e4ff2b6ac0a166802 /launcher/Application.cpp | |
parent | 49d317b19aa61fed056e0f14c12eb1997f68982d (diff) | |
download | PrismLauncher-6daa45783894fc7517917d6f6df0deaac1a41ba3.tar.gz PrismLauncher-6daa45783894fc7517917d6f6df0deaac1a41ba3.tar.bz2 PrismLauncher-6daa45783894fc7517917d6f6df0deaac1a41ba3.zip |
Implement Suggestions from flow & Scrumplex
Signed-off-by: Tayou <tayou@gmx.net>
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r-- | launcher/Application.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 3e64b74f..f2cc7bfb 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -498,7 +498,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) // Theming m_settings->registerSetting("IconTheme", QString("pe_colored")); - m_settings->registerSetting("ApplicationTheme", QString("system")); + m_settings->registerSetting("ApplicationTheme"); m_settings->registerSetting("BackgroundCat", QString("kitteh")); // Remembered state @@ -890,8 +890,8 @@ bool Application::createSetupWizard() return false; }(); bool pasteInterventionRequired = settings()->get("PastebinURL") != ""; - bool themeInterventionRequired = settings()->get("ApplicationTheme") != ""; - bool wizardRequired = javaRequired || languageRequired || pasteInterventionRequired; + bool themeInterventionRequired = settings()->get("ApplicationTheme") == ""; + bool wizardRequired = javaRequired || languageRequired || pasteInterventionRequired || themeInterventionRequired; if(wizardRequired) { @@ -913,6 +913,7 @@ bool Application::createSetupWizard() if (themeInterventionRequired) { + settings()->set("ApplicationTheme", QString("system")); // set default theme after going into theme wizard m_setupWizard->addPage(new ThemeWizardPage(m_setupWizard)); } connect(m_setupWizard, &QDialog::finished, this, &Application::setupWizardFinished); |