mirror of https://github.com/keeweb/keeweb
fixed window activation when KeeWeb is launched second time
parent
bd9144628f
commit
d9860935c1
|
@ -1,8 +1,9 @@
|
|||
const electron = require('electron');
|
||||
const app = electron.app;
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const app = electron.app;
|
||||
|
||||
let mainWindow = null;
|
||||
let appIcon = null;
|
||||
let ready = false;
|
||||
|
@ -42,6 +43,7 @@ app.on('window-all-closed', () => {
|
|||
app.removeAllListeners('ready');
|
||||
app.removeAllListeners('open-file');
|
||||
app.removeAllListeners('activate');
|
||||
app.removeAllListeners('single-instance');
|
||||
electron.globalShortcut.unregisterAll();
|
||||
electron.powerMonitor.removeAllListeners('suspend');
|
||||
electron.powerMonitor.removeAllListeners('resume');
|
||||
|
@ -83,6 +85,11 @@ app.on('activate', () => {
|
|||
app.on('will-quit', () => {
|
||||
electron.globalShortcut.unregisterAll();
|
||||
});
|
||||
app.on('second-instance', () => {
|
||||
if (mainWindow) {
|
||||
restoreMainWindow();
|
||||
}
|
||||
});
|
||||
app.restartApp = function () {
|
||||
restartPending = true;
|
||||
mainWindow.close();
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.7.3 (TBD)
|
||||
`-` fixed window activation when KeeWeb is launched second time
|
||||
|
||||
##### v1.7.2 (2019-01-07)
|
||||
`-` fixed Google Drive cookies issues
|
||||
`-` fixed storage providers authentication
|
||||
|
|
Loading…
Reference in New Issue