default value as false

this should also fix compilation on Qt6
This commit is contained in:
Marco Martin 2022-05-06 16:52:01 +00:00
parent eca9b5047a
commit 9a5d34cf6c
2 changed files with 2 additions and 2 deletions

View file

@ -161,7 +161,7 @@ void KWinScreenEdgesConfig::monitorInit()
const auto scripts = KPackage::PackageLoader::self()->listPackages(QStringLiteral("KWin/Script"), scriptFolder);
for (const KPluginMetaData &script : scripts) {
if (script.value(QStringLiteral("X-KWin-Border-Activate")) != true) {
if (script.value(QStringLiteral("X-KWin-Border-Activate"), false) != true) {
continue;
}

View file

@ -158,7 +158,7 @@ void KWinScreenEdgesConfig::monitorInit()
const auto scripts = KPackage::PackageLoader::self()->listPackages(QStringLiteral("KWin/Script"), scriptFolder);
for (const KPluginMetaData &script : scripts) {
if (script.value(QStringLiteral("X-KWin-Border-Activate")) != true) {
if (script.value(QStringLiteral("X-KWin-Border-Activate"), false) != true) {
continue;
}