diff options
| author | Christian Cleberg <[email protected]> | 2026-04-11 19:55:28 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-11 19:55:28 -0500 |
| commit | b25ac7621d1a7a2bbdf19588d855da531a185c55 (patch) | |
| tree | f48e93644369d76d301265a4f7f3c3cdc54aeef6 /Hutch | |
| parent | ba773aaa9da5798a458ee58f7ce37db070ada7d8 (diff) | |
| download | hutch-2.12.1.tar.gz hutch-2.12.1.tar.bz2 hutch-2.12.1.zip | |
fix: respect contribution graphs toggle in widgetv2.12.1
Mirror the contributionGraphsEnabled setting to shared app group
defaults so the widget extension can read it. Show a descriptive
message when contributions are disabled instead of placeholder data.
Diffstat (limited to 'Hutch')
| -rw-r--r-- | Hutch/Views/Settings/SettingsView.swift | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Hutch/Views/Settings/SettingsView.swift b/Hutch/Views/Settings/SettingsView.swift index a249807..4fb3f9c 100644 --- a/Hutch/Views/Settings/SettingsView.swift +++ b/Hutch/Views/Settings/SettingsView.swift @@ -49,6 +49,9 @@ struct SettingsView: View { Section { Toggle("Swipe actions", isOn: $swipeActionsEnabled) Toggle("Contribution graphs", isOn: $contributionGraphsEnabled) + .onChange(of: contributionGraphsEnabled) { _, newValue in + ContributionWidgetContextStore.setEnabled(newValue) + } } header: { Text("Behavior") } footer: { |
