From 041331c6a4f7d3755f537519a9f58731ae7a5ce1 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Tue, 6 Jan 2026 23:20:24 +0100 Subject: [PATCH 1/2] Add a show all windows button to the tray menu --- src/main/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index e1f61ee77cf2a..7ef27e496255d 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -797,12 +797,21 @@ function runApp() { function defaultTrayMenu() { return [ { - label: 'New Window', + label: 'New window', click: () => createWindow({ showWindowNow: true, replaceMainWindow: trayWindows.some(item => item.id === mainWindow.id) }) }, + { + label: 'Show all windows', + click: () => { + // Use while loop instead of for loop as trayClick modifies the trayWindows array + while (trayWindows.length > 0) { + trayClick(trayWindows[0]) + } + } + }, { label: 'Quit', click: handleQuit From bacb2cad0f08e6231de03e15fa8e5b2414306102 Mon Sep 17 00:00:00 2001 From: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Date: Wed, 7 Jan 2026 11:26:29 +0100 Subject: [PATCH 2/2] update labels to use title case --- src/main/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 7ef27e496255d..04580b2954e4f 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -797,14 +797,14 @@ function runApp() { function defaultTrayMenu() { return [ { - label: 'New window', + label: 'New Window', click: () => createWindow({ showWindowNow: true, replaceMainWindow: trayWindows.some(item => item.id === mainWindow.id) }) }, { - label: 'Show all windows', + label: 'Show All Windows', click: () => { // Use while loop instead of for loop as trayClick modifies the trayWindows array while (trayWindows.length > 0) {