Bugfix/window UI distortion electron (#2765)

* set initial window: false

* set window: true after loading the window state

* added ready-to-show event
This commit is contained in:
Pragadesh-45 2024-08-06 16:08:32 +05:30 committed by GitHub
parent 800dbcfdbc
commit 2358aa4cdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ app.on('ready', async () => {
height,
minWidth: 1000,
minHeight: 640,
show: true,
show: false,
webPreferences: {
nodeIntegration: true,
contextIsolation: true,
@ -68,6 +68,9 @@ app.on('ready', async () => {
mainWindow.maximize();
}
mainWindow.once('ready-to-show', () => {
mainWindow.show();
})
const url = isDev
? 'http://localhost:3000'
: format({