Skip to content

Commit

Permalink
Close Application when last window is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Itaybre committed Aug 23, 2021
1 parent a77cdcb commit 4103f27
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 4103f27

Please sign in to comment.