Skip to content

Commit 35199a3

Browse files
committed
Terminate the app in the correct way
1 parent cb33d2a commit 35199a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ExtensionService/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate {
5353
@objc func quit() {
5454
Task { @MainActor in
5555
await service.prepareForExit()
56-
exit(0)
56+
NSApp.terminate(self)
5757
}
5858
}
5959

0 commit comments

Comments
 (0)