New channel navigation

This commit is contained in:
Arkadiusz Fal
2022-05-29 20:26:56 +02:00
parent 44e6c28fd4
commit 124a48812a
8 changed files with 114 additions and 53 deletions

View File

@@ -78,6 +78,8 @@ final class NavigationModel: ObservableObject {
return
}
navigation.presentingChannel = false
let recent = RecentItem(from: channel)
#if os(macOS)
Windows.main.open()

View File

@@ -549,4 +549,8 @@ final class PlayerModel: ObservableObject {
}
#endif
}
func setNeedsDrawing(_ needsDrawing: Bool) {
backends.forEach { $0.setNeedsDrawing(needsDrawing) }
}
}

View File

@@ -4,6 +4,7 @@ import Foundation
final class RecentsModel: ObservableObject {
@Default(.recentlyOpened) var items
@Default(.saveRecents) var saveRecents
func clear() {
items = []
}