mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
desktop: fix app not quitting when closeToSystemTray
enabled
This commit is contained in:
@@ -181,7 +181,7 @@ function setupDesktopIntegration() {
|
|||||||
|
|
||||||
// when close to system tray is enabled, it becomes nigh impossible
|
// when close to system tray is enabled, it becomes nigh impossible
|
||||||
// to "quit" the app. This is necessary in order to fix that.
|
// to "quit" the app. This is necessary in order to fix that.
|
||||||
if (getDesktopIntegration().closeToSystemTray) {
|
if (desktopIntegration.closeToSystemTray) {
|
||||||
app.on("before-quit", () => app.exit(0));
|
app.on("before-quit", () => app.exit(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user