Skip to content

Commit

Permalink
Merge pull request desktop#15524 from angusdev/issue-15511-mac-close-…
Browse files Browse the repository at this point in the history
…not-hide

Hide window instead of hide the app in Mac
  • Loading branch information
sergiou87 authored Dec 12, 2022
2 parents 8ebadb1 + 254e26d commit 3f1845d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main-process/app-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export class AppWindow {
// https://github.com/desktop/desktop/issues/12838
if (this.window.isFullScreen()) {
this.window.setFullScreen(false)
this.window.once('leave-full-screen', () => app.hide())
this.window.once('leave-full-screen', () => this.window.hide())
} else {
app.hide()
this.window.hide()
}
return
}
Expand Down

0 comments on commit 3f1845d

Please sign in to comment.