refactor: Fix macOS standalone application
This commit is contained in:
@@ -13,7 +13,7 @@ public final class OverviewViewModel: BaseViewModel {
|
||||
|
||||
if profile.status.isConnected {
|
||||
do {
|
||||
try await serviceReload()
|
||||
try await profile.reloadService()
|
||||
} catch {
|
||||
alert = AlertState(error: error)
|
||||
}
|
||||
@@ -21,10 +21,6 @@ public final class OverviewViewModel: BaseViewModel {
|
||||
reasserting = false
|
||||
}
|
||||
|
||||
public nonisolated func serviceReload() async throws {
|
||||
try LibboxNewStandaloneCommandClient()!.serviceReload()
|
||||
}
|
||||
|
||||
public nonisolated func setSystemProxyEnabled(_ enabled: Bool, profile: ExtensionProfile) async {
|
||||
do {
|
||||
await SharedPreferences.systemProxyEnabled.set(enabled)
|
||||
|
||||
Reference in New Issue
Block a user