mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 06:40:32 +05:30
Fix toggling player view
This commit is contained in:
parent
616886f0d2
commit
e69a329813
@ -165,7 +165,9 @@ final class PlayerModel: ObservableObject {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
presentingPlayer = true
|
DispatchQueue.main.async { [weak self] in
|
||||||
|
self?.presentingPlayer = true
|
||||||
|
}
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
Windows.player.open()
|
Windows.player.open()
|
||||||
@ -174,8 +176,10 @@ final class PlayerModel: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func hide() {
|
func hide() {
|
||||||
playingFullScreen = false
|
DispatchQueue.main.async { [weak self] in
|
||||||
presentingPlayer = false
|
self?.playingFullScreen = false
|
||||||
|
self?.presentingPlayer = false
|
||||||
|
}
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
if Defaults[.lockPortraitWhenBrowsing] {
|
if Defaults[.lockPortraitWhenBrowsing] {
|
||||||
|
@ -49,13 +49,16 @@ struct AppSidebarNavigation: View {
|
|||||||
.frame(minWidth: sidebarMinWidth)
|
.frame(minWidth: sidebarMinWidth)
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
HStack(alignment: .center) {
|
BrowserPlayerControls {
|
||||||
Spacer()
|
HStack(alignment: .center) {
|
||||||
Image(systemName: "4k.tv")
|
Spacer()
|
||||||
.renderingMode(.original)
|
Image(systemName: "4k.tv")
|
||||||
.font(.system(size: 60))
|
.renderingMode(.original)
|
||||||
.foregroundColor(.accentColor)
|
.font(.system(size: 60))
|
||||||
Spacer()
|
.foregroundColor(.accentColor)
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.frame(maxHeight: .infinity)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user