refactor: Tab view accessory compat

This commit is contained in:
世界
2026-01-09 19:46:22 +08:00
parent a7b1199fac
commit d542c2e52a
8 changed files with 181 additions and 264 deletions
+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)")
}