yattee/macOS/AppDelegate.swift

13 lines
301 B
Swift
Raw Normal View History

2021-10-24 09:16:04 +00:00
import AppKit
import Foundation
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool {
true
}
func applicationWillTerminate(_: Notification) {
ScreenSaverManager.shared.enable()
}
2021-10-24 09:16:04 +00:00
}