From 5a191b2e493b697bc45e50dba7a11cc7ad0fa04e Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 24 Apr 2025 10:58:04 -0700 Subject: [PATCH] Send window activation from tray icon as well --- app/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main.ts b/app/main.ts index bcdfce8b29..acacd4fb34 100644 --- a/app/main.ts +++ b/app/main.ts @@ -995,6 +995,7 @@ async function createWindow() { mainWindow.on('show', () => { if (mainWindow) { + mainWindow.webContents.send('activate'); mainWindow.webContents.send('set-media-playback-disabled', false); } }); @@ -1019,7 +1020,6 @@ async function createWindow() { if (shouldShowWindow) { getLogger().info('showing main window'); - mainWindow.webContents.send('activate'); mainWindow.show(); } }); @@ -2560,7 +2560,6 @@ app.on('activate', () => { // On OS X it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open. if (mainWindow) { - mainWindow.webContents.send('activate'); mainWindow.show(); } else { drop(createWindow());