diff options
| author | Christian Cleberg <[email protected]> | 2026-04-12 23:19:20 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-12 23:19:20 -0500 |
| commit | ee9f2904aa319231b7047fca3cb069f0c07019cd (patch) | |
| tree | 69a18234512c63f38f0d477e0023969698ec3c9e /Hutch/Views/Projects/ProjectDetailView.swift | |
| parent | 72f860e0e171f6aac4e7d896e7a571147dbcb5c5 (diff) | |
| download | hutch-ee9f2904aa319231b7047fca3cb069f0c07019cd.tar.gz hutch-ee9f2904aa319231b7047fca3cb069f0c07019cd.tar.bz2 hutch-ee9f2904aa319231b7047fca3cb069f0c07019cd.zip | |
feat: add multi-account support
Implements: https://todo.sr.ht/~ccleberg/hutch/49
Implements: https://todo.sr.ht/~ccleberg/hutch/50
Implements: https://todo.sr.ht/~ccleberg/hutch/51
Diffstat (limited to 'Hutch/Views/Projects/ProjectDetailView.swift')
| -rw-r--r-- | Hutch/Views/Projects/ProjectDetailView.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Hutch/Views/Projects/ProjectDetailView.swift b/Hutch/Views/Projects/ProjectDetailView.swift index 11758ae..dc8b24d 100644 --- a/Hutch/Views/Projects/ProjectDetailView.swift +++ b/Hutch/Views/Projects/ProjectDetailView.swift @@ -22,7 +22,7 @@ struct ProjectDetailView: View { private var isPinnedToHome: Bool { _ = pinChangeCount guard let currentUserKey else { return false } - return ProjectPinStore.isPinned(projectID: displayedProject.id, for: currentUserKey) + return ProjectPinStore.isPinned(projectID: displayedProject.id, for: currentUserKey, defaults: appState.accountDefaults) } var body: some View { @@ -243,7 +243,7 @@ struct ProjectDetailView: View { private func togglePinnedState() { guard let currentUserKey else { return } - ProjectPinStore.togglePin(projectID: displayedProject.id, for: currentUserKey) + ProjectPinStore.togglePin(projectID: displayedProject.id, for: currentUserKey, defaults: appState.accountDefaults) pinChangeCount += 1 } |
