mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: ensure main-window from global menu
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
a2c39358ef
commit
fb8c57b898
@ -94,6 +94,6 @@ app.on("will-quit", (event) => {
|
|||||||
windowManager?.destroy();
|
windowManager?.destroy();
|
||||||
clusterManager?.stop();
|
clusterManager?.stop();
|
||||||
proxyServer?.close();
|
proxyServer?.close();
|
||||||
app.exit(); // force quite
|
app.exit(); // forced app.quit()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -45,8 +45,9 @@ export function buildMenu(windowManager: WindowManager) {
|
|||||||
return menuItems;
|
return menuItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
function navigate(url: string) {
|
async function navigate(url: string) {
|
||||||
logger.info(`[MENU]: navigating to ${url}`);
|
logger.info(`[MENU]: navigating to ${url}`);
|
||||||
|
await windowManager.ensureMainWindow();
|
||||||
windowManager.navigate(url);
|
windowManager.navigate(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user