feat: Make the changes persistent.

Signed-off-by: Redson <redson@riseup.net>
This commit is contained in:
Redson 2022-11-15 06:09:13 -03:00
parent a12f892841
commit 6fe626ab9a
No known key found for this signature in database
GPG Key ID: A55CD2880240ABD7

View File

@ -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());
});
}