mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 04:35:40 +00: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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user