Skip to content

Commit 6eeb8aa

Browse files
committed
cleanup
1 parent 6a93fac commit 6eeb8aa

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

Coder-Desktop/Coder-Desktop/Coder_DesktopApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
9191
title: "Coder Desktop",
9292
image: "MenuBarIcon",
9393
onAppear: {
94+
guard self.vpn.state != .connected, self.state.hasSession else { return }
9495
// If the VPN is enabled, it's likely the token isn't expired
9596
Task { @MainActor in
96-
guard self.vpn.state != .connected, self.state.hasSession else { return }
9797
await self.state.handleTokenExpiry()
9898
}
9999
}, content: {

Coder-Desktop/Coder-Desktop/Preview Content/PreviewVPN.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,5 @@ final class PreviewVPN: Coder_Desktop.VPNService {
8181
state = .connecting
8282
}
8383

84-
func updateHelperState() {}
85-
8684
var startWhenReady: Bool = false
8785
}

Coder-Desktop/Coder-Desktop/Views/VPN/VPNState.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,6 @@ struct VPNState<VPN: VPNService>: View {
5757
}
5858
}
5959

60-
struct HelperProgressView: View {
61-
var body: some View {
62-
HStack {
63-
Spacer()
64-
VStack {
65-
CircularProgressView(value: nil)
66-
Text("Installing Helper...")
67-
.multilineTextAlignment(.center)
68-
}
69-
.padding()
70-
.foregroundStyle(.secondary)
71-
Spacer()
72-
}
73-
}
74-
}
75-
7660
struct ApprovalRequiredView<VPN: VPNService>: View {
7761
@EnvironmentObject var vpn: VPN
7862
let message: String

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy