mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 22:07:10 +00:00
Fix selecting video details tab on sidebar visibility change
This commit is contained in:
parent
a04827cc56
commit
ce8a8cbef3
@ -5,7 +5,7 @@ import SwiftUI
|
|||||||
|
|
||||||
struct VideoDetails: View {
|
struct VideoDetails: View {
|
||||||
enum Page {
|
enum Page {
|
||||||
case info, queue, related, comments
|
case info, comments, related, queue
|
||||||
}
|
}
|
||||||
|
|
||||||
@Binding var sidebarQueue: Bool
|
@Binding var sidebarQueue: Bool
|
||||||
@ -129,7 +129,7 @@ struct VideoDetails: View {
|
|||||||
}
|
}
|
||||||
.onChange(of: sidebarQueue) { queue in
|
.onChange(of: sidebarQueue) { queue in
|
||||||
if queue {
|
if queue {
|
||||||
if currentPage == .queue {
|
if currentPage == .related || currentPage == .queue {
|
||||||
currentPage = .info
|
currentPage = .info
|
||||||
}
|
}
|
||||||
} else if video.isNil {
|
} else if video.isNil {
|
||||||
|
Loading…
Reference in New Issue
Block a user