From 05b247bed65d5cbe719677e15683e15fd737b432 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 30 Jun 2026 14:14:25 +0600 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2/=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=97=B6=E6=B8=85=E7=A9=BA=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E7=BC=93=E5=AD=98=EF=BC=8C=E9=98=B2=E6=AD=A2=E7=9C=8B=E5=88=B0?= =?UTF-8?q?=E5=B7=B2=E5=88=A0=E9=99=A4=E8=B4=A6=E5=8F=B7=E7=9A=84=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/VODManager/Views/VideoListView.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift b/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift index 5f2efad..0fabf79 100644 --- a/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift +++ b/apps/macos/VODManager/Sources/VODManager/Views/VideoListView.swift @@ -1,6 +1,7 @@ import SwiftUI struct VideoListView: View { + @EnvironmentObject var accountStore: AccountStore @State private var allVideos: [VideoItem] = [] @State private var filteredVideos: [VideoItem] = [] @State private var displayVideos: [VideoItem] = [] @@ -210,6 +211,14 @@ struct VideoListView: View { await refreshFromAPI() } } + .onChange(of: accountStore.activeAccount?.id) { _, newId in + allVideos = [] + filteredVideos = [] + displayVideos = [] + selectedVideos = [] + errorMessage = nil + Task { await refreshFromAPI() } + } .sheet(isPresented: $showDownloadPanel) { DownloadPanelView(items: downloadResults) }