mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-21 04:33:30 +01:00
-[bug-fix]: UI Api invocation needs to be on UI Thread
This commit is contained in:
@@ -118,11 +118,12 @@ private extension IntentHandler
|
|||||||
{
|
{
|
||||||
// Queue response in case refreshing finishes after confirm() but before handle().
|
// Queue response in case refreshing finishes after confirm() but before handle().
|
||||||
self.queuedResponses[intent] = response
|
self.queuedResponses[intent] = response
|
||||||
|
DispatchQueue.main.async {
|
||||||
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func refreshApps(intent: RefreshAllIntent)
|
func refreshApps(intent: RefreshAllIntent)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user