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

Commitac93c9c

Browse files
committed
clear menustate on start
1 parentaedbe8e commitac93c9c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎Coder Desktop/Coder Desktop/VPNMenuState.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ struct VPNMenuState {
104104

105105
mutatingfunc upsertWorkspace(_ workspace:Vpn_Workspace){
106106
guardlet wsID=UUID(uuidData: workspace.id)else{return}
107-
workspaces[wsID]=Workspace(id: wsID, name: workspace.name, agents:[])
107+
// Workspace names are unique & case-insensitive, and we want to show offline workspaces
108+
// with a valid hostname (lowercase).
109+
workspaces[wsID]=Workspace(id: wsID, name: workspace.name.lowercased(), agents:[])
108110
// Check if we can associate any invalid agents with this workspace
109111
invalidAgents.filter{ agentin
110112
agent.workspaceID== workspace.id

‎Coder Desktop/Coder Desktop/VPNService.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ final class CoderVPNService: NSObject, VPNService {
9090
return
9191
}
9292

93+
menuState.clear()
9394
awaitstartTunnel()
9495
logger.debug("network extension enabled")
9596
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp