From 2358aa4cdc730c3e3dfbc102750089be43da835a Mon Sep 17 00:00:00 2001 From: Pragadesh-45 <54320162+Pragadesh-45@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:08:32 +0530 Subject: [PATCH] Bugfix/window UI distortion electron (#2765) * set initial window: false * set window: true after loading the window state * added ready-to-show event --- packages/bruno-electron/src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/index.js b/packages/bruno-electron/src/index.js index 4475c1716..cad10a10c 100644 --- a/packages/bruno-electron/src/index.js +++ b/packages/bruno-electron/src/index.js @@ -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({