kcmkwin/scripts: fix a warning
Summary: Prevents warnings such as : org.kde.kcoreaddons: Expected JSON property "X-KWin-Exclude-Listing" to be a single string. but it is a bool Reviewers: #kwin, ervin, bport, cross, hchain, zzag Reviewed By: #kwin, zzag Subscribers: zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D28018
This commit is contained in:
parent
7c5c7b5a1e
commit
40ebb4e245
1 changed files with 1 additions and 4 deletions
|
@ -126,10 +126,7 @@ void Module::importScriptInstallFinished(KJob *job)
|
|||
void Module::updateListViewContents()
|
||||
{
|
||||
auto filter = [](const KPluginMetaData &md) {
|
||||
if (md.value(QStringLiteral("X-KWin-Exclude-Listing")) == QLatin1String("true") ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !md.rawData().value("X-KWin-Exclude-Listing").toBool();
|
||||
};
|
||||
|
||||
const QString scriptFolder = QStringLiteral("kwin/scripts/");
|
||||
|
|
Loading…
Reference in a new issue