mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Wait for LensApp to report that the view has loaded before showing main window (#2597)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
88de530913
commit
f3b38d36c6
3 files changed
+49
-19
No files matched your search
+2
-2
@@ -188,7 +188,7 @@ app.on("ready", async () => {
|
||||
installDeveloperTools();
|
||||
|
||||
if (!startHidden) {
|
||||
windowManager.initMainWindow();
|
||||
windowManager.ensureMainWindow();
|
||||
}
|
||||
|
||||
ipcMain.on(IpcRendererNavigationEvents.LOADED, () => {
|
||||
@@ -236,7 +236,7 @@ app.on("activate", (event, hasVisibleWindows) => {
|
||||
logger.info("APP:ACTIVATE", { hasVisibleWindows });
|
||||
|
||||
if (!hasVisibleWindows) {
|
||||
WindowManager.getInstance(false)?.initMainWindow(false);
|
||||
WindowManager.getInstance(false)?.ensureMainWindow(false);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user