Commit efa8c4df authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Properly access the system's GTK settings

BUG: 382291
parent 5e61e14c
......@@ -135,26 +135,24 @@ void AppearanceGTK3::setApplicationPreferDarkTheme(const bool& enable)
bool AppearanceGTK3::saveSettings(const QString& file) const
{
auto cfg = KSharedConfig::openConfig(file);
auto cfg = KSharedConfig::openConfig(file, KConfig::NoGlobals);
return saveSettings(cfg);
}
bool AppearanceGTK3::loadSettings(const QString& path)
{
auto cfg = KSharedConfig::openConfig(path);
auto cfg = KSharedConfig::openConfig(path, KConfig::NoGlobals);
return loadSettings(cfg);
}
bool AppearanceGTK3::loadSettings()
{
auto cfg = KSharedConfig::openConfig(configFileName());
cfg->setReadDefaults(true);
auto cfg = KSharedConfig::openConfig(configFileName(), KConfig::NoGlobals);
return loadSettings(cfg);
}
bool AppearanceGTK3::saveSettings() const
{
auto cfg = KSharedConfig::openConfig(configFileName());
cfg->setReadDefaults(true);
auto cfg = KSharedConfig::openConfig(configFileName(), KConfig::NoGlobals);
return saveSettings(cfg);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment