1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-24 07:36:40 +02:00

removed unnecessary timeout

This commit is contained in:
antelle 2017-12-03 09:03:56 +01:00
parent 7c69c1305f
commit 1557a9a92f

View File

@ -147,11 +147,9 @@ function createMainWindow() {
mainWindow.openDevTools();
}
mainWindow.once('ready-to-show', () => {
setTimeout(() => {
mainWindow.show();
ready = true;
notifyOpenFile();
}, 50);
mainWindow.show();
ready = true;
notifyOpenFile();
});
mainWindow.webContents.on('context-menu', onContextMenu);
mainWindow.on('resize', delaySaveMainWindowPosition);