fix #621, fix #340: tray icon crash

This commit is contained in:
antelle 2017-06-05 14:15:22 +02:00
parent b732eb9a74
commit b7475a8d4c
1 changed files with 1 additions and 1 deletions

View File

@ -166,12 +166,12 @@ function createMainWindow() {
}
function restoreMainWindow() {
destroyAppIcon();
if (mainWindow.isMinimized()) {
mainWindow.restore();
}
mainWindow.setSkipTaskbar(false);
mainWindow.focus();
setTimeout(destroyAppIcon, 0);
}
function closeMainWindow() {