setRequired actually works now

This commit is contained in:
Aaron Seigo 2014-08-08 01:32:17 +02:00
parent 402825b301
commit 9ee252475f

View File

@ -83,8 +83,7 @@ void LookAndFeelPackage::initPackage(Plasma::Package *package)
void QmlWallpaperPackage::initPackage(Plasma::Package *package)
{
package->addFileDefinition("mainscript", "ui/main.qml", i18n("Main Script File"));
//FIXME: why setting it required doesn't work?
//package->setRequired("mainscript", true);
package->setRequired("mainscript", true);
QStringList platform = KDeclarative::KDeclarative::runtimePlatform();
if (!platform.isEmpty()) {