mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 02:36:32 +00:00
fix: prevent stealing window focus from auth dialog
Change-type: patch
This commit is contained in:
parent
2d7a6220cd
commit
f716c74ef7
@ -184,7 +184,7 @@ async function createMainWindow() {
|
|||||||
mainWindow.setFullScreen(true);
|
mainWindow.setFullScreen(true);
|
||||||
|
|
||||||
// Prevent flash of white when starting the application
|
// Prevent flash of white when starting the application
|
||||||
mainWindow.on('ready-to-show', () => {
|
mainWindow.once('ready-to-show', () => {
|
||||||
console.timeEnd('ready-to-show');
|
console.timeEnd('ready-to-show');
|
||||||
// Electron sometimes caches the zoomFactor
|
// Electron sometimes caches the zoomFactor
|
||||||
// making it obnoxious to switch back-and-forth
|
// making it obnoxious to switch back-and-forth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user