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

Commit56d7e1f

Browse files
committed
remove two stages
1 parent5936021 commit56d7e1f

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

‎Coder-Desktop/Coder-Desktop/VPN/VPNProgress.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct VPNProgressView: View {
4242
}
4343
switch progress.stage{
4444
case.initial:
45-
return0.05
45+
return0
4646
case.downloading:
4747
guardlet downloadProgress= progress.downloadProgresselse{
4848
// We can't make this illegal state unrepresentable because XPC
@@ -52,15 +52,11 @@ struct VPNProgressView: View {
5252
// 40MB if the server doesn't give us the expected size
5353
lettotalBytes= downloadProgress.totalBytesToWrite??40_000_000
5454
letdownloadPercent=min(1.0,Float(downloadProgress.totalBytesWritten)/ Float(totalBytes))
55-
return0.05+0.4* downloadPercent
55+
return0.4* downloadPercent
5656
case.validating:
57-
return0.42
57+
return0.43
5858
case.removingQuarantine:
59-
return0.44
60-
case.opening:
6159
return0.46
62-
case.settingUpTunnel:
63-
return0.48
6460
case.startingTunnel:
6561
return0.50
6662
}

‎Coder-Desktop/VPN/Manager.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ actor Manager {
6767
// so it's safe to execute. However, the SE must be sandboxed, so we defer to the app.
6868
tryawaitremoveQuarantine(dest)
6969

70-
pushProgress(stage:.opening)
7170
do{
7271
try tunnelHandle=TunnelHandle(dylibPath: dest)
7372
}catch{
7473
throw.tunnelSetup(error)
7574
}
76-
pushProgress(stage:.settingUpTunnel)
7775
speaker=awaitSpeaker<Vpn_ManagerMessage,Vpn_TunnelMessage>(
7876
writeFD: tunnelHandle.writeHandle,
7977
readFD: tunnelHandle.readHandle

‎Coder-Desktop/VPNLib/XPC.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import Foundation
1919
case downloading
2020
case validating
2121
case removingQuarantine
22-
case opening
23-
case settingUpTunnel
2422
case startingTunnel
2523

2624
publicvardescription:String?{
@@ -33,10 +31,6 @@ import Foundation
3331
"Validating library..."
3432
case.removingQuarantine:
3533
"Removing quarantine..."
36-
case.opening:
37-
"Opening library..."
38-
case.settingUpTunnel:
39-
"Setting up tunnel..."
4034
case.startingTunnel:
4135
nil
4236
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp