mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-24 17:03:47 +01:00
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:
parent
800dbcfdbc
commit
2358aa4cdc
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user