diff options
| author | Christian Cleberg <[email protected]> | 2026-04-23 17:39:13 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-23 17:39:13 -0500 |
| commit | 66601a8091a73f3e31f4fb534c38b3eca4756e93 (patch) | |
| tree | f85cd883e63177d25dfe5993a4d545efa4812923 /Hutch/Views/Home | |
| parent | 380fb866d090c5f13b2ad3f88f1fe23c4ade4801 (diff) | |
| download | hutch-3.2.1.tar.gz hutch-3.2.1.tar.bz2 hutch-3.2.1.zip | |
fix: profile loading error and user-timeline prefs updatev3.2.1
Diffstat (limited to 'Hutch/Views/Home')
| -rw-r--r-- | Hutch/Views/Home/HomeView.swift | 3 | ||||
| -rw-r--r-- | Hutch/Views/Home/HomeViewModel.swift | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Hutch/Views/Home/HomeView.swift b/Hutch/Views/Home/HomeView.swift index 406e2ad..9e06a00 100644 --- a/Hutch/Views/Home/HomeView.swift +++ b/Hutch/Views/Home/HomeView.swift @@ -56,6 +56,9 @@ struct HomeView: View { loadRecentActivity() } } + .onChange(of: failedBuildLookbackDays) { _, _ in + viewModel?.refreshNeedsAttentionSnapshot() + } } @ViewBuilder diff --git a/Hutch/Views/Home/HomeViewModel.swift b/Hutch/Views/Home/HomeViewModel.swift index 7ef82e9..142eee4 100644 --- a/Hutch/Views/Home/HomeViewModel.swift +++ b/Hutch/Views/Home/HomeViewModel.swift @@ -670,6 +670,10 @@ final class HomeViewModel { persistNeedsAttentionSnapshot() } + func refreshNeedsAttentionSnapshot() { + persistNeedsAttentionSnapshot() + } + private func loadProjects() async -> Result<[Project], Error> { do { return .success(try await projectService.fetchProjects()) |
