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:
1 parent
a2c39358ef
commit
fb8c57b898
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -94,6 +94,6 @@ app.on("will-quit", (event) => {
|
||||
windowManager?.destroy();
|
||||
clusterManager?.stop();
|
||||
proxyServer?.close();
|
||||
app.exit(); // force quite
|
||||
app.exit(); // forced app.quit()
|
||||
}
|
||||
})
|
||||
+2
-1
@@ -45,8 +45,9 @@ export function buildMenu(windowManager: WindowManager) {
|
||||
return menuItems;
|
||||
}
|
||||
|
||||
function navigate(url: string) {
|
||||
async function navigate(url: string) {
|
||||
logger.info(`[MENU]: navigating to ${url}`);
|
||||
await windowManager.ensureMainWindow();
|
||||
windowManager.navigate(url);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user