electron: don't hide window until ready-to-show

This commit is contained in:
Thomas Weber committed 2021-10-29 16:38:29 -05:00
1 parent b9d028b174
commit 2c4dfb3afe
1 file changed
+1 -4
+1 -4
View File
@@ -480,7 +480,7 @@ const createWindow = () => {
nodeIntegration: false,
sandbox: true
},
show: false
show: true
};
const activeScreen = screen.getDisplayNearestPoint(screen.getCursorScreenPoint());
@@ -489,9 +489,6 @@ const createWindow = () => {
options.y = bounds.y + ((bounds.height - options.height) / 2);
const window = new BrowserWindow(options);
window.once('ready-to-show', () => {
window.show();
});
window.loadFile(path.resolve(__dirname, './index.html'));
};