From e273bd71f229070f8483ce91603bf3e606356e7c Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Tue, 2 Feb 2021 15:07:13 +0100 Subject: [PATCH] Tray: change order of items, Open first (#2059) Fixes #2032 Signed-off-by: Arthur Lutz --- src/main/tray.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/tray.ts b/src/main/tray.ts index 47f641ad72..44a22d27bf 100644 --- a/src/main/tray.ts +++ b/src/main/tray.ts @@ -62,16 +62,6 @@ function buildTray(icon: string | NativeImage, menu: Menu, windowManager: Window function createTrayMenu(windowManager: WindowManager): Menu { return Menu.buildFromTemplate([ - { - label: "About Lens", - async click() { - // note: argument[1] (browserWindow) not available when app is not focused / hidden - const browserWindow = await windowManager.ensureMainWindow(); - - showAbout(browserWindow); - }, - }, - { type: "separator" }, { label: "Open Lens", async click() { @@ -124,6 +114,15 @@ function createTrayMenu(windowManager: WindowManager): Menu { } }, }, + { + label: "About Lens", + async click() { + // note: argument[1] (browserWindow) not available when app is not focused / hidden + const browserWindow = await windowManager.ensureMainWindow(); + + showAbout(browserWindow); + }, + }, { type: "separator" }, { label: "Quit App",