mirror of
https://github.com/zadam/trilium.git
synced 2025-01-01 04:41:46 +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 });
|
||||
|
||||
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();
|
||||
}
|
||||
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 () => {
|
||||
|
|
|
@ -62,6 +62,7 @@ const updateTrayMenu = () => {
|
|||
mainWindow.hide();
|
||||
} else {
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue