1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

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

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.