Skip to content

Commit 4103f27

Browse files
committed
Close Application when last window is closed
1 parent a77cdcb commit 4103f27

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)