Skip to content

Commit

Permalink
Fix unable to hide Quick Panel with OSC, #4071
Browse files Browse the repository at this point in the history
This commit will change the `MainWindowController` methods
`showPlaylistSidebar` and `showSettingsSidebar` to hide or show the
panel when no tab is specified.
  • Loading branch information
low-batt committed Nov 12, 2022
1 parent db3ae2b commit 02a0a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iina/MainWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2616,7 +2616,7 @@ class MainWindowController: PlayerWindowController {
self.showSideBar(viewController: view, type: .settings)
}
case .settings:
if view.currentTab == tab {
if view.currentTab == tab || tab == nil {
if hideIfAlreadyShown {
hideSideBar()
}
Expand Down Expand Up @@ -2645,7 +2645,7 @@ class MainWindowController: PlayerWindowController {
self.showSideBar(viewController: view, type: .playlist)
}
case .playlist:
if view.currentTab == tab {
if view.currentTab == tab || tab == nil {
if hideIfAlreadyShown {
hideSideBar()
}
Expand Down

0 comments on commit 02a0a10

Please sign in to comment.