Various minor fixes

This commit is contained in:
Arkadiusz Fal
2022-11-13 00:07:23 +01:00
parent 4657af2f3d
commit 61d235780d
12 changed files with 71 additions and 62 deletions

View File

@@ -5,8 +5,6 @@ import SwiftUI
#endif
struct AppSidebarNavigation: View {
@Default(.showOpenActionsToolbarItem) private var showOpenActionsToolbarItem
@EnvironmentObject<AccountsModel> private var accounts
@EnvironmentObject<NavigationModel> private var navigation
@@ -23,6 +21,8 @@ struct AppSidebarNavigation: View {
@EnvironmentObject<ThumbnailsModel> private var thumbnailsModel
#endif
@Default(.showOpenActionsToolbarItem) private var showOpenActionsToolbarItem
var body: some View {
#if os(iOS)
content.introspectViewController { viewController in

View File

@@ -121,16 +121,7 @@ struct ContentView: View {
NavigationModel.shared.presentingOpenVideos = false
}
.onOpenURL {
OpenURLHandler(
accounts: accounts,
navigation: navigation,
recents: recents,
player: player,
search: search,
navigationStyle: navigationStyle
).handle($0)
}
.onOpenURL(perform: OpenURLHandler.shared.handle)
.background(
EmptyView().sheet(isPresented: $navigation.presentingAddToPlaylist) {
AddToPlaylistView(video: navigation.videoToAddToPlaylist)

View File

@@ -47,7 +47,7 @@ struct Sidebar: View {
Label("Home", systemImage: "house")
.accessibility(label: Text("Home"))
}
.id("favorites")
.id("home")
}
#if os(iOS)
@@ -59,7 +59,6 @@ struct Sidebar: View {
.id("documents")
}
#endif
}
if !accounts.isEmpty {
if visibleSections.contains(.subscriptions),