Unverified Commit e273bd71 authored by Arthur Lutz's avatar Arthur Lutz Committed by GitHub
Browse files

Tray: change order of items, Open first (#2059)


Fixes #2032
Signed-off-by: default avatarArthur Lutz <arthur.lutz@logilab.fr>
parent 21adda2c
Showing with 9 additions and 10 deletions
+9 -10
......@@ -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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment