diff options
Diffstat (limited to 'Jel/Views/Dashboard/DashboardView.swift')
-rw-r--r-- | Jel/Views/Dashboard/DashboardView.swift | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jel/Views/Dashboard/DashboardView.swift b/Jel/Views/Dashboard/DashboardView.swift index 5ad25f8..931a884 100644 --- a/Jel/Views/Dashboard/DashboardView.swift +++ b/Jel/Views/Dashboard/DashboardView.swift @@ -10,6 +10,8 @@ import JellyfinKit struct DashboardView: View { @State var showingSettingsSheet: Bool = false + @ObservedObject var authState: AuthStateController = AuthStateController.shared + @State var refresh: Bool = true var body: some View { ScrollView { @@ -37,6 +39,9 @@ struct DashboardView: View { .sheet(isPresented: $showingSettingsSheet) { SettingsView(showingSettingsView: $showingSettingsSheet) } + .onChange(of: authState.loggedIn, { + refresh = !authState.loggedIn + }) } } |