mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Fix toggling player view
This commit is contained in:
parent
bc0ed93e87
commit
539869cdbb
@ -165,7 +165,9 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
#endif
|
||||
|
||||
presentingPlayer = true
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.presentingPlayer = true
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
Windows.player.open()
|
||||
@ -174,8 +176,10 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
|
||||
func hide() {
|
||||
playingFullScreen = false
|
||||
presentingPlayer = false
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.playingFullScreen = false
|
||||
self?.presentingPlayer = false
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
if Defaults[.lockPortraitWhenBrowsing] {
|
||||
|
@ -49,6 +49,7 @@ struct AppSidebarNavigation: View {
|
||||
.frame(minWidth: sidebarMinWidth)
|
||||
|
||||
VStack {
|
||||
BrowserPlayerControls {
|
||||
HStack(alignment: .center) {
|
||||
Spacer()
|
||||
Image(systemName: "4k.tv")
|
||||
@ -57,6 +58,8 @@ struct AppSidebarNavigation: View {
|
||||
.foregroundColor(.accentColor)
|
||||
Spacer()
|
||||
}
|
||||
.frame(maxHeight: .infinity)
|
||||
}
|
||||
}
|
||||
}
|
||||
.environment(\.navigationStyle, .sidebar)
|
||||
|
Loading…
Reference in New Issue
Block a user