mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Music mode controls layout improvements
This commit is contained in:
parent
a2b9d4d938
commit
3a05462965
@ -609,6 +609,7 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
|
||||
func closeCurrentItem(finished: Bool = false) {
|
||||
controls.hide()
|
||||
pause()
|
||||
closePiP()
|
||||
|
||||
@ -960,12 +961,16 @@ final class PlayerModel: ObservableObject {
|
||||
musicMode.toggle()
|
||||
|
||||
if musicMode {
|
||||
aspectRatio = VideoPlayerView.defaultAspectRatio
|
||||
controls.presentingControls = true
|
||||
controls.removeTimer()
|
||||
|
||||
backend.startMusicMode()
|
||||
} else {
|
||||
backend.stopMusicMode()
|
||||
Delay.by(0.25) {
|
||||
self.updateAspectRatio()
|
||||
}
|
||||
|
||||
controls.resetTimer()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user