mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Fixes widgets potentially not updating after refreshing apps
This commit is contained in:
committed by
Joseph Mattello
parent
46b0d1ceac
commit
6d35a7a4ba
@@ -1663,12 +1663,7 @@ private extension AppManager
|
|||||||
|
|
||||||
if #available(iOS 14, *)
|
if #available(iOS 14, *)
|
||||||
{
|
{
|
||||||
WidgetCenter.shared.getCurrentConfigurations { (result) in
|
WidgetCenter.shared.reloadAllTimelines()
|
||||||
guard case .success(let widgets) = result else { return }
|
|
||||||
|
|
||||||
guard let widget = widgets.first(where: { $0.configuration is ViewAppIntent }) else { return }
|
|
||||||
WidgetCenter.shared.reloadTimelines(ofKind: widget.kind)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do { try installedApp.managedObjectContext?.save() }
|
do { try installedApp.managedObjectContext?.save() }
|
||||||
|
|||||||
Reference in New Issue
Block a user