Permalink
Browse files

Fix assertion failure when trying to exiting pip while is not in pip

  • Loading branch information...
alejx committed Feb 8, 2019
1 parent 59710db commit b3addc1879c92f687ea2d76e0ab741614878d62d
Showing with 3 additions and 2 deletions.
  1. +1 −0 iina/MainWindowController.swift
  2. +2 −2 iina/zh-Hant.lproj/PrefUIViewController.strings
@@ -2863,6 +2863,7 @@ extension MainWindowController: PIPViewControllerDelegate {
}

func exitPIP() {
guard pipStatus == .inPIP else { return }
if pipShouldClose(pip) {
// Prod Swift to pick the dismiss(_ viewController: NSViewController)
// overload over dismiss(_ sender: Any?). A change in the way implicitly
@@ -155,7 +155,7 @@ Picture:"; ObjectID = "G8w-J7-1q1"; */
"bYj-5g-zYO.title" = "Box";

/* Class = "NSButtonCell"; title = "Toggle Picture-in-Picture by minimizing/un-minimizing the window"; ObjectID = "baY-O6-fcB"; */
"baY-O6-fcB.title" = "最小化/還原窗口時,自動切換「畫中畫」模式";
"baY-O6-fcB.title" = "最小化/還原視窗時,自動切換「畫中畫」模式";

/* Class = "NSMenuItem"; title = "2x video size"; ObjectID = "dUG-QD-CXL"; */
"dUG-QD-CXL.title" = "2 倍視訊大小";
@@ -191,7 +191,7 @@ Picture:"; ObjectID = "G8w-J7-1q1"; */
"mM7-1Q-FyL.title" = "外觀:";

/* Class = "NSButtonCell"; title = "Snap to center when dragging"; ObjectID = "mdD-if-Wqw"; */
"mdD-if-Wqw.title" = "拖動時吸附到窗口中心";
"mdD-if-Wqw.title" = "拖動時吸附到視窗中心";

/* Class = "NSMenuItem"; title = "Previous / Next Media"; ObjectID = "oJ8-74-L3z"; */
"oJ8-74-L3z.title" = "上一個/下一個媒體";

0 comments on commit b3addc1

Please sign in to comment.