Merge pull request #59 from GunGunGun/patch-1

Recreate shortcuts file if not exist/deleted -  ZenKeyboardShortcuts.mjs
This commit is contained in:
mr. m 🤙 2024-10-18 19:19:32 +03:00 committed by GitHub
commit 301fec9557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -535,6 +535,8 @@ class ZenKeyboardShortcutsLoader {
try {
return await IOUtils.readJSON(this.shortcutsFile);
} catch (e) {
// Recreate shortcuts file
Services.prefs.clearUserPref('zen.keyboard.shortcuts.version');
console.error('Error loading shortcuts file', e);
return null;
}