If scopes are now empty but weren't previously, add all valid scopes (#1259)

This commit is contained in:
toasted-nutbread 2021-01-16 22:37:58 -05:00 committed by GitHub
parent 86e4e53372
commit a39eede04b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`,