1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

[src/main/tray] Change order of items, Open first

Fixes #2032

Signed-off-by: Arthur Lutz <arthur.lutz@logilab.fr>
This commit is contained in:
Arthur Lutz 2021-02-02 09:56:49 +01:00
parent 9e1487685c
commit 80eab91877

View File

@ -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",