From 80eab9187775ef84357fcb66b5bb52f0f17a1a34 Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Tue, 2 Feb 2021 09:56:49 +0100 Subject: [PATCH] [src/main/tray] Change order of items, Open first 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",