Revert event-driven .show, in order for bootstrap/hide-to-tray to work (#14181)

This commit is contained in:
Anders Åberg 2025-04-18 10:43:22 +02:00 committed by GitHub
parent 5af12505f1
commit 7bf4bae7c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -292,11 +292,7 @@ export class WindowMain {
this.win.maximize();
}
// Show it later since it might need to be maximized.
// use once event to avoid flash on unstyled content.
this.win.once("ready-to-show", () => {
this.win.show();
});
this.win.show();
if (template === "full-app") {
// and load the index.html of the app.