Skip to content
Permalink
Browse files

Use macOS instead of OSX in #available checks

  • Loading branch information...
saagarjha committed May 29, 2019
1 parent 07b2fcd commit 9cc47c27a6b7f93a7cc0087977a810c019fa3587
Showing with 4 additions and 4 deletions.
  1. +2 −2 iina/AppDelegate.swift
  2. +2 −2 iina/MainWindowController.swift
@@ -207,7 +207,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}

// enter PIP
if #available(OSX 10.12, *), let pc = lastPlayerCore, commandLineStatus.enterPIP {
if #available(macOS 10.12, *), let pc = lastPlayerCore, commandLineStatus.enterPIP {
pc.mainWindow.enterPIP()
}
}
@@ -391,7 +391,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
player.mpv.setFlag(MPVOption.Window.fullscreen, true)
} else if let pipValue = queryDict["pip"], pipValue == "1" {
// pip
if #available(OSX 10.12, *) {
if #available(macOS 10.12, *) {
player.mainWindow.enterPIP()
}
}
@@ -1619,7 +1619,7 @@ class MainWindowController: NSWindowController, NSWindowDelegate {

func windowDidMiniaturize(_ notification: Notification) {
if Preference.bool(for: .togglePipByMinimizingWindow) && !isWindowMiniaturizedDueToPip {
if #available(OSX 10.12, *) {
if #available(macOS 10.12, *) {
enterPIP()
}
}
@@ -1631,7 +1631,7 @@ class MainWindowController: NSWindowController, NSWindowDelegate {
isPausedDueToMiniaturization = false
}
if Preference.bool(for: .togglePipByMinimizingWindow) && !isWindowMiniaturizedDueToPip {
if #available(OSX 10.12, *) {
if #available(macOS 10.12, *) {
exitPIP()
}
}

0 comments on commit 9cc47c2

Please sign in to comment.
You can’t perform that action at this time.