Verified Commit 2434ff10 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

Use JavaScript strict equality ===

parent 4e32ea20
......@@ -116,9 +116,9 @@ Kirigami.Page {
visible: KAuthorized.authorize("ghns")
configFile: "window-decorations.knsrc"
onEntryEvent: function (entry, event) {
if (event == 1) { // StatusChangedEvent
if (event === NewStuff.Engine.StatusChangedEvent) {
kcm.reloadKWinSettings()
} else if (event == 2) { // EntryAdoptedEvent
} else if (event === NewStuff.Engine.EntryAdoptedEvent) {
kcm.load()
}
}
......
......@@ -126,7 +126,7 @@ ScrollViewKCM {
visible: KAuthorized.authorize(KAuthorized.GHNS)
configFile: "kwineffect.knsrc"
onEntryEvent: function (entry, event) {
if (event == 1) { // StatusChangedEvent
if (event === NewStuff.Engine.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