refactor: Fix macOS standalone application

This commit is contained in:
世界
2026-01-05 01:21:24 +08:00
parent ef1c924c64
commit 59317f3c79
66 changed files with 2799 additions and 585 deletions
+2 -9
View File
@@ -39,11 +39,8 @@ public class MainViewModel: BaseViewModel {
if url.host == "import-remote-profile" {
var error: NSError?
importRemoteProfile = LibboxParseRemoteProfileImportLink(url.absoluteString, &error)
if error != nil {
return
}
if selection != .dashboard {
selection = .dashboard
if let error {
alert = AlertState(error: error)
}
} else if url.pathExtension == "bpf" {
Task {
@@ -61,10 +58,6 @@ public class MainViewModel: BaseViewModel {
url.stopAccessingSecurityScopedResource()
} catch {
alert = AlertState(error: error)
return
}
if selection != .dashboard {
selection = .dashboard
}
}