From 6d35a7a4bac813b53e88182e36691be9208c4bc5 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 22 Sep 2022 13:53:28 -0500 Subject: [PATCH] Fixes widgets potentially not updating after refreshing apps --- AltStore/Managing Apps/AppManager.swift | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/AltStore/Managing Apps/AppManager.swift b/AltStore/Managing Apps/AppManager.swift index 8b9bad77..f3c6acd4 100644 --- a/AltStore/Managing Apps/AppManager.swift +++ b/AltStore/Managing Apps/AppManager.swift @@ -1121,7 +1121,7 @@ private extension AppManager presentingViewController?.dismiss(animated: true, completion: nil) } } - presentingViewController.present(navigationController, animated: true, completion: nil) + presentingViewController.present(navigationController, animated: true, completion: nil) } } catch @@ -1662,13 +1662,8 @@ private extension AppManager } if #available(iOS 14, *) - { - WidgetCenter.shared.getCurrentConfigurations { (result) in - 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) - } + { + WidgetCenter.shared.reloadAllTimelines() } do { try installedApp.managedObjectContext?.save() }