Skip to content

Commit

Permalink
Add diagnostic option to invalidate widget recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
gestrich committed Jul 17, 2024
1 parent 599e4a7 commit 3d02002
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LoopCaregiver/LoopCaregiver/Views/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 3d02002

Please sign in to comment.