Drop assertion on legit intents scenario

This commit is contained in:
Davide De Rosa 2022-10-13 18:31:56 +02:00
parent f95e4f228d
commit 6031d0119a
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@
// //
import Foundation import Foundation
import PassepartoutCore import PassepartoutLibrary
extension Constants.App { extension Constants.App {
static func tunnelBundleId(_ vpnProtocol: VPNProtocolType) -> String { static func tunnelBundleId(_ vpnProtocol: VPNProtocolType) -> String {

View File

@ -27,6 +27,7 @@ import Foundation
import Intents import Intents
import IntentsUI import IntentsUI
import Combine import Combine
import PassepartoutLibrary
@MainActor @MainActor
class IntentsManager: NSObject, ObservableObject { class IntentsManager: NSObject, ObservableObject {
@ -54,7 +55,7 @@ class IntentsManager: NSObject, ObservableObject {
} }
isReloadingShortcuts = false isReloadingShortcuts = false
} catch { } catch {
assertionFailure("Unable to fetch existing shortcuts: \(error)") pp_log.error("Unable to fetch existing shortcuts: \(error)")
isReloadingShortcuts = false isReloadingShortcuts = false
} }
} }