mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
desktop: exit the app if window is closed when its fullscreen on macOS
This commit is contained in:
committed by
Abdullah Atta
parent
6a05048aed
commit
690d405103
@@ -177,7 +177,10 @@ function setupDesktopIntegration() {
|
||||
if (getDesktopIntegration().closeToSystemTray) {
|
||||
e.preventDefault();
|
||||
if (process.platform == "darwin") {
|
||||
app.hide();
|
||||
// on macOS window cannot be minimized/hidden if it is already fullscreen
|
||||
// so we just close it.
|
||||
if (globalThis.window.isFullScreen()) app.exit(0);
|
||||
else app.hide();
|
||||
} else {
|
||||
globalThis.window.minimize();
|
||||
globalThis.window.hide();
|
||||
|
||||
Reference in New Issue
Block a user