1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30

Minor fixes

This commit is contained in:
Arkadiusz Fal 2022-08-06 16:28:19 +02:00
parent af88002adc
commit b0851c6140
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ struct NetworkState: View {
} }
var visible: Bool { var visible: Bool {
player.isPlaying && (model.pausedForCache || player.isSeeking) player.isPlaying && ((player.activeBackend == .mpv && model.pausedForCache) || player.isSeeking)
} }
} }

View File

@ -97,8 +97,8 @@ struct VideoPlayerView: View {
} }
#if os(iOS) #if os(iOS)
.frame(width: playerWidth.isNil ? nil : Double(playerWidth!), height: playerHeight.isNil ? nil : Double(playerHeight!)) .frame(width: playerWidth.isNil ? nil : Double(playerWidth!), height: playerHeight.isNil ? nil : Double(playerHeight!))
#endif
.ignoresSafeArea(.all, edges: playerEdgesIgnoringSafeArea) .ignoresSafeArea(.all, edges: playerEdgesIgnoringSafeArea)
#endif
.onChange(of: geometry.size) { size in .onChange(of: geometry.size) { size in
self.playerSize = size self.playerSize = size
} }