From b25ac7621d1a7a2bbdf19588d855da531a185c55 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 11 Apr 2026 19:55:28 -0500 Subject: fix: respect contribution graphs toggle in widget 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. --- Hutch/Views/Settings/SettingsView.swift | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Hutch') 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: { -- cgit v1.2.3