diff options
author | Redson <redson@riseup.net> | 2022-11-15 06:09:13 -0300 |
---|---|---|
committer | Redson <redson@riseup.net> | 2022-11-15 06:09:13 -0300 |
commit | 6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba (patch) | |
tree | ad5e5c671f5b4b953ccc18760afb662554f06842 | |
parent | a12f892841399163fbc12e72c61c7ed6fae882cf (diff) | |
download | PrismLauncher-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.cpp | 4 |
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()); }); } |