Skip to content

Commit 70e56fa

Browse files
authored
Merge pull request #18 from Itaybre/feature/close_app_when_last_window_closed
Close Application when last window is closed
2 parents a77cdcb + 4103f27 commit 70e56fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CameraController/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
119119
// If we got here, it is time to quit.
120120
return .terminateNow
121121
}
122+
123+
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
124+
return true
125+
}
122126
}

0 commit comments

Comments
 (0)