mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Set AVAudioSession, disable screensaver during playback on macOS
This commit is contained in:
@@ -5,4 +5,8 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool {
|
||||
true
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_: Notification) {
|
||||
ScreenSaverManager.shared.enable()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user