yattee/macOS/AppDelegate.swift
2021-10-27 01:10:07 +02:00

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()
}
}