No need to manually read defaultTheme

This is now handled automatically. The hierachy stays the same:
plasmashellrc, lnf, kpackage
wilder-5.24
David Redondo 4 years ago
parent 0b901a227f
commit 14089755c3
  1. 6
      shell/shellcorona.cpp

@ -265,11 +265,7 @@ void ShellCorona::setShell(const QString &shell)
if (themeName.isEmpty()) {
KConfigGroup shellCfg = KConfigGroup(KSharedConfig::openConfig(package.filePath("defaults")), "Theme");
themeName = shellCfg.readEntry("name", "default");
KConfigGroup lnfCfg = KConfigGroup(KSharedConfig::openConfig(m_lookAndFeelPackage.filePath("defaults")), "plasmarc");
lnfCfg = KConfigGroup(&lnfCfg, themeGroupKey);
themeName = lnfCfg.readEntry(themeNameKey, themeName);
themeName = shellCfg.readEntry(themeNameKey, "default");
}
if (!themeName.isEmpty()) {

Loading…
Cancel
Save