Permalink
Browse files

Added various Picture-in-Picture options

- Hide or minimize the window when entering PiP
- Pause playback when entering PiP
- Toggle PiP by minimizing/un-minimizing the window
  • Loading branch information...
LEoREo2247
LEoREo2247 committed Jan 22, 2019
1 parent 0173e8e commit a61711c8d636f8fbfc99b3b7ee485eb1caa21dfc
@@ -249,6 +249,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}

func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {
guard !PlayerCore.active.mainWindow.isWindowHidden else { return .terminateCancel }
Logger.log("App should terminate")
for pc in PlayerCore.playerCores {
pc.terminateMPV()
Oops, something went wrong.

0 comments on commit a61711c

Please sign in to comment.