mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Merge pull request #4075 from leadpogrommer/fix_focus_stealing
Prevent stealing window focus from auth dialog
This commit is contained in:
commit
589ce9c28e
@ -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