From 6fe626ab9ad9f76b793f09ceb5e8e8cced3f15ba Mon Sep 17 00:00:00 2001 From: Redson Date: Tue, 15 Nov 2022 06:09:13 -0300 Subject: [PATCH] feat: Make the changes persistent. Signed-off-by: Redson --- launcher/ui/MainWindow.cpp | 4 ++-- 1 file 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()); }); }