keybindings.js: Skip invalid custom-list entries instead of aborting setup
This commit is contained in:
1 parent
49f0af4ae1
commit
4991f28aef
1 file changed
+4
@@ -394,6 +394,10 @@ KeybindingManager.prototype = {
|
||||
|
||||
let custom_path = CUSTOM_KEYS_BASENAME + "/" + list[i] + "/";
|
||||
let schema = Gio.Settings.new_with_path(CUSTOM_KEYS_SCHEMA, custom_path);
|
||||
if (!schema) {
|
||||
global.logWarning(`Ignoring invalid custom keybinding entry '${list[i]}'`);
|
||||
continue;
|
||||
}
|
||||
let command = schema.get_string("command");
|
||||
let binding = schema.get_strv("binding");
|
||||
let name = list[i];
|
||||
|
||||
Reference in new issue
Block a user