mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
Actually fixes interactive widget animation continuing indefinitely
This commit is contained in:
@@ -128,8 +128,6 @@ struct RefreshAllAppsIntent: AppIntent, CustomIntentMigratedAppIntent, Predictab
|
||||
}
|
||||
catch
|
||||
{
|
||||
WidgetCenter.shared.reloadAllTimelines()
|
||||
|
||||
let intentError = IntentError(error)
|
||||
throw intentError
|
||||
}
|
||||
|
||||
@@ -20,11 +20,18 @@ struct RefreshAllAppsWidgetIntent: AppIntent, ProgressReportingIntent
|
||||
|
||||
func perform() async throws -> some IntentResult & ProvidesDialog
|
||||
{
|
||||
#if WIDGET_EXTENSION
|
||||
return .result(dialog: "")
|
||||
#else
|
||||
return try await self.intent.perform()
|
||||
#if !WIDGET_EXTENSION
|
||||
do
|
||||
{
|
||||
_ = try await self.intent.perform()
|
||||
}
|
||||
catch
|
||||
{
|
||||
print("Failed to refresh apps via widget.", error)
|
||||
}
|
||||
#endif
|
||||
|
||||
return .result(dialog: "")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user