don't load toolbox on types not desktop or panel
exclude customdesktop and custompanel
This commit is contained in:
parent
9e1226f26f
commit
fd9b5bd006
@ -109,6 +109,7 @@ void ContainmentInterface::init()
|
|||||||
defaults = KConfigGroup(KSharedConfig::openConfig(m_containment->corona()->package().filePath("defaults")), "Panel");
|
defaults = KConfigGroup(KSharedConfig::openConfig(m_containment->corona()->package().filePath("defaults")), "Panel");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defaults.isValid()) {
|
||||||
KPackage::Package pkg = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML");
|
KPackage::Package pkg = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML");
|
||||||
pkg.setDefaultPackageRoot("plasma/packages");
|
pkg.setDefaultPackageRoot("plasma/packages");
|
||||||
|
|
||||||
@ -139,6 +140,7 @@ void ContainmentInterface::init()
|
|||||||
} else {
|
} else {
|
||||||
qWarning() << "Toolbox not loading, toolbox package is either invalid or disabled.";
|
qWarning() << "Toolbox not loading, toolbox package is either invalid or disabled.";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user