Use enum value for KAuthorized::authorize

Task: https://phabricator.kde.org/T11948
This commit is contained in:
Alexander Lohnau 2021-10-09 14:57:23 +02:00
parent 6d5fc9fd30
commit 8adfd2f244

View file

@ -123,7 +123,7 @@ ScrollViewKCM {
NewStuff.Button {
text: i18n("Get New Desktop Effects...")
visible: KAuthorized.authorize("ghns")
visible: KAuthorized.authorize(KAuthorized.GHNS)
configFile: "kwineffect.knsrc"
onEntryEvent: function (entry, event) {
if (event == 1) { // StatusChangedEvent