cellular-refresh: disable shortcuts spawning until this feature is complete since it interferes with testing for now.

This commit is contained in:
mahee96
2026-03-02 08:03:41 +05:30
parent 9d01a1c116
commit f8a0ee2c84
2 changed files with 9 additions and 6 deletions

View File

@@ -216,8 +216,9 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
// Cell Shortcut
DispatchQueue.main.async{
UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in
print("Cell OFF Shortcut finished execution.")}
// UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in
// print("Cell OFF Shortcut finished execution.")
// }
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
}
}))
@@ -238,7 +239,9 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
DispatchQueue.main.async {
// Cell Shortcut
UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in print("Cell OFF Shortcut finished execution.")}
// UIApplication.shared.open(shortcutURLonDelay, options: [:]) { _ in
// print("Cell OFF Shortcut finished execution.")
// }
UIApplication.shared.perform(#selector(NSXPCConnection.suspend))
}
}

View File

@@ -46,13 +46,13 @@ final class SendAppOperation: ResultOperation<()>
// Wait for Shortcut to Finish Before Proceeding
DispatchQueue.main.async {
UIApplication.shared.open(shortcutURLoff, options: [:]) { _ in
print("Shortcut finished execution. Proceeding with file transfer.")
// UIApplication.shared.open(shortcutURLoff, options: [:]) { _ in
// print("Shortcut finished execution. Proceeding with file transfer.")
DispatchQueue.global().async {
self.processFile(at: fileURL, for: app.bundleIdentifier)
}
}
// }
}
}