mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 14:50:32 +05:30
17 lines
421 B
Swift
17 lines
421 B
Swift
import AppKit
|
|
import Foundation
|
|
|
|
final class AppDelegate: NSObject, NSApplicationDelegate {
|
|
func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool {
|
|
true
|
|
}
|
|
|
|
func applicationWillFinishLaunching(_: Notification) {
|
|
NSWindow.allowsAutomaticWindowTabbing = false
|
|
}
|
|
|
|
func applicationWillTerminate(_: Notification) {
|
|
ScreenSaverManager.shared.enable()
|
|
}
|
|
}
|