mirror of
https://github.com/zadam/trilium.git
synced 2025-01-06 07:13:48 +08:00
small fixes to tray and closing windows
This commit is contained in:
parent
3c1f826ead
commit
563808144e
2 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,11 @@ appIconService.installLocalAppIcon();
|
||||||
require('electron-dl')({ saveAs: true });
|
require('electron-dl')({ saveAs: true });
|
||||||
|
|
||||||
app.on('window-all-closed', () => {
|
app.on('window-all-closed', () => {
|
||||||
if (process.platform !== 'darwin') {
|
if (process.platform === 'win32') {
|
||||||
|
app.exit(0); // attempt to fix the issue when app.quit() won't terminate processes on windows
|
||||||
|
} else {
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
else if (process.platform === 'win32') {
|
|
||||||
app.exit(0); // attempt to fix the issue when app.quite() won't terminate processes on windows
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('ready', async () => {
|
app.on('ready', async () => {
|
||||||
|
|
|
@ -62,6 +62,7 @@ const updateTrayMenu = () => {
|
||||||
mainWindow.hide();
|
mainWindow.hide();
|
||||||
} else {
|
} else {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
|
mainWindow.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue