From 3d02002aab39dd287c78f8a6fa7b631fba54cf23 Mon Sep 17 00:00:00 2001 From: Bill Gestrich <3207996+gestrich@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:16:49 -0400 Subject: [PATCH] Add diagnostic option to invalidate widget recommendations --- .../LoopCaregiver/Views/Settings/SettingsView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LoopCaregiver/LoopCaregiver/Views/Settings/SettingsView.swift b/LoopCaregiver/LoopCaregiver/Views/Settings/SettingsView.swift index 90a445f0..1ef73445 100644 --- a/LoopCaregiver/LoopCaregiver/Views/Settings/SettingsView.swift +++ b/LoopCaregiver/LoopCaregiver/Views/Settings/SettingsView.swift @@ -249,6 +249,11 @@ struct SettingsView: View { } Section { LabeledContent("User ID", value: accountService.selectedLooper?.id ?? "") + Button(action: { + WidgetCenter.shared.invalidateConfigurationRecommendations() + }, label: { + Text("Invalidate Recommendations") + }) Button(action: { WidgetCenter.shared.reloadAllTimelines() }, label: {