mirror of
https://github.com/yattee/yattee.git
synced 2025-10-18 13:28:12 +00:00
Save last used account instead of having to set default
This commit is contained in:
@@ -21,7 +21,7 @@ struct WatchNowSection: View {
|
||||
resource.addObserver(store)
|
||||
resource.loadIfNeeded()
|
||||
}
|
||||
.onChange(of: accounts.account) { _ in
|
||||
.onChange(of: accounts.current) { _ in
|
||||
resource.load()
|
||||
}
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ struct WatchNowView: View {
|
||||
var body: some View {
|
||||
PlayerControlsView {
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
if !accounts.account.isNil {
|
||||
if !accounts.current.isNil {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
if api.signedIn {
|
||||
WatchNowSection(resource: api.feed, label: "Subscriptions")
|
||||
|
Reference in New Issue
Block a user