1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 05:40:32 +05:30
yattee/macOS/AppDelegate.swift

17 lines
421 B
Swift
Raw Permalink Normal View History

2021-10-24 14:46:04 +05:30
import AppKit
import Foundation
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool {
true
}
2021-10-27 04:29:59 +05:30
func applicationWillFinishLaunching(_: Notification) {
NSWindow.allowsAutomaticWindowTabbing = false
}
func applicationWillTerminate(_: Notification) {
ScreenSaverManager.shared.enable()
}
2021-10-24 14:46:04 +05:30
}