Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/desktop/src/main/windows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ export function createMainWindow(id: string = randomUUID()) {
wireFullscreen(win)
loadWindow(win, "index.html")
wireZoom(win)
win.once("ready-to-show", () => win.show())
let revealed = false
const reveal = () => {
if (revealed || win.isDestroyed()) return
revealed = true
win.show()
}
win.once("ready-to-show", reveal)
if (process.platform === "linux") win.webContents.once("did-finish-load", reveal)
return win
}

Expand Down
Loading