Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6eeb8aa

Browse files
committed
cleanup
1 parent6a93fac commit6eeb8aa

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+
guardself.vpn.state!=.connected,self.state.hasSessionelse{return}
9495
// If the VPN is enabled, it's likely the token isn't expired
9596
Task{@MainActorin
96-
guardself.vpn.state!=.connected,self.state.hasSessionelse{return}
9797
awaitself.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-
structHelperProgressView:View{
61-
varbody:someView{
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
structApprovalRequiredView<VPN:VPNService>:View{
7761
@EnvironmentObjectvarvpn:VPN
7862
letmessage:String

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp