fix: prevent stealing window focus from auth dialog

Change-type: patch
This commit is contained in:
leadpogrommer 2023-06-17 23:21:57 +07:00
parent 2d7a6220cd
commit f716c74ef7

View File

@ -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