Avoid pointless config parse in ksplash

Summary:
Due to the nature of cascading configs we have already loaded and parsed
kdeglobals, it's wasteful to do it again. Especially in ksplash where startup time is important.

Test Plan:
Changed lnf to org.obnosim.tweak.desktop which contains a new splash
Logged out and back in. Still got a different splash.

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D11923
wilder-5.14
David Edmundson 8 years ago
parent bd5619e015
commit 3b02ff3c17
  1. 2
      ksplash/ksplashqml/splashwindow.cpp

@ -122,7 +122,7 @@ void SplashWindow::setGeometry(const QRect& rect)
if (oldGeometryEmpty) {
KPackage::Package package = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("Plasma/LookAndFeel"));
KConfigGroup cg(KSharedConfig::openConfig(QStringLiteral("kdeglobals")), "KDE");
KConfigGroup cg(KSharedConfig::openConfig(), "KDE");
const QString packageName = cg.readEntry("LookAndFeelPackage", QString());
if (!packageName.isEmpty()) {
package.setPath(packageName);

Loading…
Cancel
Save