Skip to content

Commit

Permalink
Merge pull request #18 from Itaybre/feature/close_app_when_last_windo…
Browse files Browse the repository at this point in the history
…w_closed

Close Application when last window is closed
  • Loading branch information
Itaybre authored Aug 23, 2021
2 parents a77cdcb + 4103f27 commit 70e56fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CameraController/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// If we got here, it is time to quit.
return .terminateNow
}

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
}

0 comments on commit 70e56fa

Please sign in to comment.