refactor: Tab view accessory compat

This commit is contained in:
世界 committed 2026-01-09 19:46:22 +08:00
1 parent a7b1199fac
commit d542c2e52a
8 files changed
+181 -264

No files matched your search

+3 -7
View File
@@ -88,12 +88,6 @@ public class ExtensionProfile: ObservableObject {
}
#endif
private func unregister() {
if let observer {
NotificationCenter.default.removeObserver(observer)
}
}
nonisolated deinit {
if let observer {
NotificationCenter.default.removeObserver(observer)
@@ -242,7 +236,9 @@ public class ExtensionProfile: ObservableObject {
try await manager.saveToPreferences()
}
do {
try LibboxNewStandaloneCommandClient()!.serviceClose()
try await Task.detached(priority: .userInitiated) {
try LibboxNewStandaloneCommandClient()!.serviceClose()
}.value
} catch {
logger.debug("serviceClose error: \(error.localizedDescription)")
}