kcms/scripts: Replace magic number with named enum member of NewStuff events
This commit is contained in:
parent
5de83e78cc
commit
bef357db5b
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ ScrollViewKCM {
|
|||
text: i18n("Get New Scripts…")
|
||||
visible: KAuthorized.authorize(KAuthorized.GHNS)
|
||||
configFile: "kwinscripts.knsrc"
|
||||
onEntryEvent: function (entry, event) {
|
||||
if (event == 1) { // StatusChangedEvent
|
||||
onEntryEvent: (entry, event) => {
|
||||
if (event === NewStuff.Engine.StatusChangedEvent) {
|
||||
kcm.onGHNSEntriesChanged()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue