aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRedson <redson@riseup.net>2022-11-15 06:09:13 -0300
committerRedson <redson@riseup.net>2022-11-15 06:09:13 -0300
commit6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba (patch)
treead5e5c671f5b4b953ccc18760afb662554f06842
parenta12f892841399163fbc12e72c61c7ed6fae882cf (diff)
downloadPrismLauncher-6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba.tar.gz
PrismLauncher-6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba.tar.bz2
PrismLauncher-6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba.zip
feat: Make the changes persistent.
Signed-off-by: Redson <redson@riseup.net>
-rw-r--r--launcher/ui/MainWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index e2ab3b46..f62d9760 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1327,8 +1327,8 @@ void MainWindow::updateThemeMenu()
themeAction->setActionGroup(ThemesGroup);
connect(themeAction, &QAction::triggered, [theme]() {
- APPLICATION->setApplicationTheme(theme->name().toLower(),false);
-
+ APPLICATION->setApplicationTheme(theme->id(),false);
+ APPLICATION->settings()->set("ApplicationTheme", theme->id());
});
}