From 024eab11eb56710dfe343fdf0e9aeb62380f716a Mon Sep 17 00:00:00 2001 From: Max Thyron Date: Thu, 28 Nov 2024 23:04:54 +0300 Subject: [PATCH] Moved new shortcut to version 5 --- .../base/zen-components/ZenKeyboardShortcuts.mjs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/browser/base/zen-components/ZenKeyboardShortcuts.mjs b/src/browser/base/zen-components/ZenKeyboardShortcuts.mjs index d932abc6a..26db734b8 100644 --- a/src/browser/base/zen-components/ZenKeyboardShortcuts.mjs +++ b/src/browser/base/zen-components/ZenKeyboardShortcuts.mjs @@ -802,6 +802,12 @@ class ZenKeyboardShortcutsVersioner { } } if (version < 4) { + // Migrate from 3 to 4 + // In this new version, we are just removing the 'zen-toggle-sidebar' shortcut + // since it's not used anymore. + data = data.filter((shortcut) => shortcut.getID() != 'zen-toggle-sidebar'); + } + if (version < 5) { data.push( new KeyShortcut( 'zen-split-view-rearrange', @@ -813,11 +819,6 @@ class ZenKeyboardShortcutsVersioner { 'zen-split-view-shortcut-rearrange' ) ); - - // Migrate from 3 to 4 - // In this new version, we are just removing the 'zen-toggle-sidebar' shortcut - // since it's not used anymore. - data = data.filter((shortcut) => shortcut.getID() != 'zen-toggle-sidebar'); } return data; }