mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
fix(electron): wait until ready before showing the main window (#22262)
This commit is contained in:
parent
65e3348232
commit
cb1a50055c
1 changed files with 5 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ export function createMainWindow(globals: Globals) {
|
|||
y: state.y,
|
||||
width: state.width,
|
||||
height: state.height,
|
||||
show: true,
|
||||
show: false,
|
||||
title: "OpenCode",
|
||||
icon: iconPath(),
|
||||
backgroundColor,
|
||||
|
|
@ -94,6 +94,10 @@ export function createMainWindow(globals: Globals) {
|
|||
wireZoom(win)
|
||||
injectGlobals(win, globals)
|
||||
|
||||
win.once("ready-to-show", () => {
|
||||
win.show()
|
||||
})
|
||||
|
||||
return win
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue