@@ -16,13 +16,6 @@ const registerQuickLaunchShortcut = async (shortcut: string): Promise<void> => {
1616 registeredQuickLaunchShortcut = shortcut ;
1717} ;
1818
19- const saveQuickLaunchShortcut = ( shortcut : string ) : void => {
20- persistShortcuts ( {
21- ...getStoredShortcuts ( ) ,
22- quickLaunch : shortcut ,
23- } ) ;
24- } ;
25-
2619export async function initializeGlobalShortcuts ( ) : Promise < void > {
2720 const preferredShortcut = getStoredShortcuts ( ) . quickLaunch ;
2821
@@ -33,7 +26,10 @@ export async function initializeGlobalShortcuts(): Promise<void> {
3326 if ( preferredShortcut !== DEFAULT_QUICK_LAUNCH_SHORTCUT ) {
3427 try {
3528 await registerQuickLaunchShortcut ( DEFAULT_QUICK_LAUNCH_SHORTCUT ) ;
36- saveQuickLaunchShortcut ( DEFAULT_QUICK_LAUNCH_SHORTCUT ) ;
29+ persistShortcuts ( {
30+ ...getStoredShortcuts ( ) ,
31+ quickLaunch : DEFAULT_QUICK_LAUNCH_SHORTCUT ,
32+ } ) ;
3733 } catch ( fallbackError ) {
3834 console . error ( 'Failed to register fallback global shortcut' , fallbackError ) ;
3935 }
@@ -54,7 +50,6 @@ export async function updateQuickLaunchShortcut(shortcut: string): Promise<void>
5450
5551 if ( globalShortcutsPaused ) {
5652 registeredQuickLaunchShortcut = nextShortcut ;
57- saveQuickLaunchShortcut ( nextShortcut ) ;
5853 return ;
5954 }
6055
@@ -64,7 +59,6 @@ export async function updateQuickLaunchShortcut(shortcut: string): Promise<void>
6459
6560 try {
6661 await registerQuickLaunchShortcut ( nextShortcut ) ;
67- saveQuickLaunchShortcut ( nextShortcut ) ;
6862 } catch ( error ) {
6963 if ( previousShortcut ) {
7064 try {
0 commit comments