aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-04-08 18:48:02 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-04-08 18:48:05 +0200
commita9881115073cc73e668f14b23851914ddfa9b4e7 (patch)
tree3acd5ce23006b3a489633d06d993767f85e5c1d5 /launcher/Application.cpp
parented085630db63401ac50d26403d953f5d9993b9ce (diff)
downloadPrismLauncher-a9881115073cc73e668f14b23851914ddfa9b4e7.tar.gz
PrismLauncher-a9881115073cc73e668f14b23851914ddfa9b4e7.tar.bz2
PrismLauncher-a9881115073cc73e668f14b23851914ddfa9b4e7.zip
fix: do not apply system theme on launch
Closes PrismLauncher/PrismLauncher#490 Regression introduced by PrismLauncher/PrismLauncher#249 Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r--launcher/Application.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 879af535..c33694e9 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -830,9 +830,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
}
});
- {
- applyCurrentlySelectedTheme();
- }
+ applyCurrentlySelectedTheme(true);
updateCapabilities();
@@ -1107,9 +1105,9 @@ QList<ITheme*> Application::getValidApplicationThemes()
return m_themeManager->getValidApplicationThemes();
}
-void Application::applyCurrentlySelectedTheme()
+void Application::applyCurrentlySelectedTheme(bool initial)
{
- m_themeManager->applyCurrentlySelectedTheme();
+ m_themeManager->applyCurrentlySelectedTheme(initial);
}
void Application::setApplicationTheme(const QString& name)