mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 22:30: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,6 +49,7 @@ struct AppSidebarNavigation: View {
|
|||||||
.frame(minWidth: sidebarMinWidth)
|
.frame(minWidth: sidebarMinWidth)
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
|
BrowserPlayerControls {
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
Spacer()
|
Spacer()
|
||||||
Image(systemName: "4k.tv")
|
Image(systemName: "4k.tv")
|
||||||
@ -57,6 +58,8 @@ struct AppSidebarNavigation: View {
|
|||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
|
.frame(maxHeight: .infinity)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.environment(\.navigationStyle, .sidebar)
|
.environment(\.navigationStyle, .sidebar)
|
||||||
|
Loading…
Reference in New Issue
Block a user