If scopes are now empty but weren't previously, add all valid scopes (#1259)
This commit is contained in:
parent
86e4e53372
commit
a39eede04b
@ -330,6 +330,9 @@ class KeyboardShortcutHotkeyEntry {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (changed) {
|
if (changed) {
|
||||||
|
if (scopes.length === 0) {
|
||||||
|
scopes.push(...validScopes);
|
||||||
|
}
|
||||||
targets.push({
|
targets.push({
|
||||||
action: 'set',
|
action: 'set',
|
||||||
path: `${this._basePath}.scopes`,
|
path: `${this._basePath}.scopes`,
|
||||||
|
Loading…
Reference in New Issue
Block a user