desktop: fix app not quitting when closeToSystemTray

enabled
This commit is contained in:
ammarahm-ed
2023-02-14 12:12:58 +05:00
parent 2cd6a397dc
commit 21b278d42e

View File

@@ -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));
} }