Skip to content

Commit

Permalink
Fixes #1187.
Browse files Browse the repository at this point in the history
  • Loading branch information
enesonus committed Apr 2, 2023
1 parent 94212af commit 462408c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ function createMainWindow(): BrowserWindow {
event.preventDefault();

if (process.platform === "darwin") {
app.hide();
if (win.isFullScreen()) {
win.setFullScreen(false);
win.once("leave-full-screen", () => {
app.hide();
});
} else {
app.hide();
}
} else {
win.hide();
}
Expand Down

0 comments on commit 462408c

Please sign in to comment.