From f716c74ef7cb164b4d825828e4e46033484ad9af Mon Sep 17 00:00:00 2001 From: leadpogrommer Date: Sat, 17 Jun 2023 23:21:57 +0700 Subject: [PATCH] fix: prevent stealing window focus from auth dialog Change-type: patch --- lib/gui/etcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/etcher.ts b/lib/gui/etcher.ts index 3292e77e..caf1afcf 100644 --- a/lib/gui/etcher.ts +++ b/lib/gui/etcher.ts @@ -184,7 +184,7 @@ async function createMainWindow() { mainWindow.setFullScreen(true); // Prevent flash of white when starting the application - mainWindow.on('ready-to-show', () => { + mainWindow.once('ready-to-show', () => { console.timeEnd('ready-to-show'); // Electron sometimes caches the zoomFactor // making it obnoxious to switch back-and-forth