mirror of
https://github.com/SideStore/SideStore.git
synced 2026-03-27 04:45:39 +01:00
bug-fix: be on right thread when doing UI work or accessing UI references/UIApplication
This commit is contained in:
@@ -214,10 +214,12 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
alert.addAction(UIAlertAction(title: NSLocalizedString("Continue", comment: ""), style: .default, handler: { _ in
|
alert.addAction(UIAlertAction(title: NSLocalizedString("Continue", comment: ""), style: .default, handler: { _ in
|
||||||
print("Going home")
|
print("Going home")
|
||||||
// Cell Shortcut
|
// Cell Shortcut
|
||||||
UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in
|
|
||||||
print("Cell OFF Shortcut finished execution.")}
|
DispatchQueue.main.async{
|
||||||
|
UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in
|
||||||
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
print("Cell OFF Shortcut finished execution.")}
|
||||||
|
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
||||||
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
@@ -233,9 +235,12 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Cell Shortcut
|
|
||||||
UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in print("Cell OFF Shortcut finished execution.")}
|
DispatchQueue.main.async {
|
||||||
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
// Cell Shortcut
|
||||||
|
UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in print("Cell OFF Shortcut finished execution.")}
|
||||||
|
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user