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
|
catch
|
||||||
{
|
{
|
||||||
WidgetCenter.shared.reloadAllTimelines()
|
|
||||||
|
|
||||||
let intentError = IntentError(error)
|
let intentError = IntentError(error)
|
||||||
throw intentError
|
throw intentError
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,11 +20,18 @@ struct RefreshAllAppsWidgetIntent: AppIntent, ProgressReportingIntent
|
|||||||
|
|
||||||
func perform() async throws -> some IntentResult & ProvidesDialog
|
func perform() async throws -> some IntentResult & ProvidesDialog
|
||||||
{
|
{
|
||||||
#if WIDGET_EXTENSION
|
#if !WIDGET_EXTENSION
|
||||||
return .result(dialog: "")
|
do
|
||||||
#else
|
{
|
||||||
return try await self.intent.perform()
|
_ = try await self.intent.perform()
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
print("Failed to refresh apps via widget.", error)
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return .result(dialog: "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user