Skip to content

Commit

Permalink
Bump the mini player window on opening miniplayer (#4409)
Browse files Browse the repository at this point in the history
... when the video player is hidden. Fix #4399
  • Loading branch information
uiryuu committed May 14, 2023
1 parent 4d57467 commit 10b0ff0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iina/PlayerCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ class PlayerCore: NSObject {
if needRestoreLayout {
if !Preference.bool(for: .musicModeShowAlbumArt) {
miniPlayer.toggleVideoView(self)
if let origin = miniPlayer.window?.frame.origin {
miniPlayer.window?.setFrameOrigin(.init(x: origin.x, y: origin.y + miniPlayer.videoView.frame.height))
}
}
if Preference.bool(for: .musicModeShowPlaylist) {
miniPlayer.togglePlaylist(self)
Expand Down

0 comments on commit 10b0ff0

Please sign in to comment.