Skip to content
Verified Commit de8a392d authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

[desktoppackage/ConfigurationShortcuts] Use strict === equality in JavaScript

The `property var keySequence` has a value of undefined, empty string,
or a valid QKeySequence gadget type.

Once frameworks/kdeclarative!108 lands, keySequence will be QKeySequence
at all times. Comparing it via === in JavaScript has semantics of
checking operands for being literally the same object (as in: memory
address). I'm not sure how that semantics apply to gadgets which are
supposed to be copied on every occasion, but in the worst case scenario
they'll just always be considered non-equal, and configuration would be
updated every time, which does no harm.

GIT_SILENT
parent af247605
Pipeline #132718 passed with stage
in 5 minutes and 44 seconds
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