Skip to content

Commit

Permalink
Merge pull request #14 from XuYicong/gracefully-terminate
Browse files Browse the repository at this point in the history
gracefully terminate the game when close window
  • Loading branch information
JoseMoreville authored Aug 15, 2022
2 parents 4c82280 + aa1a423 commit 7b45bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlayTools/PlayCover.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 7b45bbf

Please sign in to comment.