keep system icon theme setting

This commit is contained in:
Martin Rotter 2024-03-21 11:24:59 +01:00
parent 3331d2d0c2
commit 754cb2a135
2 changed files with 4 additions and 4 deletions

View File

@ -91,6 +91,10 @@ void IconFactory::setCurrentIconTheme(const QString& theme_name) {
qApp->settings()->setValue(GROUP(GUI), GUI::IconTheme, theme_name);
}
QString IconFactory::currentIconTheme() const {
return qApp->settings()->value(GROUP(GUI), SETTING(GUI::IconTheme)).toString();
}
void IconFactory::loadCurrentIconTheme() {
const QStringList installed_themes = installedIconThemes();
const QString theme_name_from_settings = qApp->settings()->value(GROUP(GUI), SETTING(GUI::IconTheme)).toString();

View File

@ -52,8 +52,4 @@ class RSSGUARD_DLLSPEC IconFactory : public QObject {
void setCurrentIconTheme(const QString& theme_name);
};
inline QString IconFactory::currentIconTheme() const {
return QIcon::themeName();
}
#endif // ICONFACTORY_H