From aa1a42301bc626e87078dc0372181af700d382ef Mon Sep 17 00:00:00 2001 From: Xyct <87l46110@gmail.com> Date: Sat, 13 Aug 2022 17:46:14 +0800 Subject: [PATCH] replace exit0 with application terminate --- PlayTools/PlayCover.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlayTools/PlayCover.swift b/PlayTools/PlayCover.swift index a675e4af..2cd329bd 100644 --- a/PlayTools/PlayCover.swift +++ b/PlayTools/PlayCover.swift @@ -33,7 +33,7 @@ final public class PlayCover : NSObject { queue: OperationQueue.main ) { noti in if PlayScreen.shared.nsWindow?.isEqual(noti.object) ?? false { - exit(0) + Dynamic.NSApplication.sharedApplication.terminate(self) } } }