Browse Source

Merge pull request #2160 from bartekczyz/master

Allow mainWindow to be undefined
pull/2195/head
Ramiro Saenz 6 years ago committed by GitHub
parent
commit
9a4ec26997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      electron/main.js

4
electron/main.js

@ -454,7 +454,9 @@ app.on('activate', function () {
config.get('master_password') ? createMasterPasswordWindow() : createWindow();
}
if ( mainWindow !== null ) mainWindow.show();
if (mainWindow) {
mainWindow.show();
}
});
app.on('before-quit', function () {

Loading…
Cancel
Save