Commit 4ed0fe31 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

kcmkwin: Port deprecated KNewStuff signals

This also avoids an unnecessary reload when the changedEntries
are cleared.
parent 0d918505
......@@ -106,7 +106,11 @@ Kirigami.Page {
icon.name: "get-hot-new-stuff"
visible: KAuthorized.authorize("ghns")
configFile: "window-decorations.knsrc"
onChangedEntriesChanged: kcm.reloadKWinSettings()
onEntryEvent: function (entry, event) {
if (event == 1) { // StatusChangedEvent
kcm.reloadKWinSettings()
}
}
}
}
}
......
......@@ -125,7 +125,11 @@ ScrollViewKCM {
text: i18n("Get New Desktop Effects...")
visible: KAuthorized.authorize("ghns")
configFile: "kwineffect.knsrc"
onChangedEntriesChanged: kcm.onGHNSEntriesChanged()
onEntryEvent: function (entry, event) {
if (event == 1) { // StatusChangedEvent
kcm.onGHNSEntriesChanged()
}
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment