mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Set automatic termination programatically (fix #1183)
This commit is contained in:
parent
8decd3396f
commit
ff45fe7349
@ -5,6 +5,10 @@ Change Log
|
||||
4.0.5 (unreleased)
|
||||
--------------------------
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue that the application did not terminate when all windows are closed.
|
||||
|
||||
|
||||
|
||||
4.0.4 (461)
|
||||
|
@ -86,6 +86,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
UserDefaults.standard.register(defaults: defaults)
|
||||
NSUserDefaultsController.shared.initialValues = defaults
|
||||
|
||||
// -> Setting `NSSupportsAutomaticTermination` in Info.plist
|
||||
// doesn't work somehow (2021-06)
|
||||
ProcessInfo.processInfo.automaticTerminationSupportEnabled = true
|
||||
|
||||
// instantiate shared instances
|
||||
_ = DocumentController.shared
|
||||
_ = TextFinder.shared
|
||||
|
Loading…
Reference in New Issue
Block a user