mirror of
https://github.com/yattee/yattee.git
synced 2025-12-31 17:02:31 +00:00
Add Piped support
This commit is contained in:
@@ -8,7 +8,7 @@ struct WatchNowSection: View {
|
||||
|
||||
@StateObject private var store = Store<[Video]>()
|
||||
|
||||
@EnvironmentObject<InvidiousAPI> private var api
|
||||
@EnvironmentObject<AccountsModel> private var accounts
|
||||
|
||||
init(resource: Resource, label: String) {
|
||||
self.resource = resource
|
||||
@@ -21,7 +21,7 @@ struct WatchNowSection: View {
|
||||
resource.addObserver(store)
|
||||
resource.loadIfNeeded()
|
||||
}
|
||||
.onChange(of: api.account) { _ in
|
||||
.onChange(of: accounts.account) { _ in
|
||||
resource.load()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user