mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
New channel navigation
This commit is contained in:
@@ -78,6 +78,8 @@ final class NavigationModel: ObservableObject {
|
||||
return
|
||||
}
|
||||
|
||||
navigation.presentingChannel = false
|
||||
|
||||
let recent = RecentItem(from: channel)
|
||||
#if os(macOS)
|
||||
Windows.main.open()
|
||||
|
@@ -549,4 +549,8 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
func setNeedsDrawing(_ needsDrawing: Bool) {
|
||||
backends.forEach { $0.setNeedsDrawing(needsDrawing) }
|
||||
}
|
||||
}
|
||||
|
@@ -4,6 +4,7 @@ import Foundation
|
||||
final class RecentsModel: ObservableObject {
|
||||
@Default(.recentlyOpened) var items
|
||||
@Default(.saveRecents) var saveRecents
|
||||
|
||||
func clear() {
|
||||
items = []
|
||||
}
|
||||
|
Reference in New Issue
Block a user