Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a553fb6

Browse files
committedApr 8, 2025·
rebase
1 parent 1dfafa8 commit a553fb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncSessionModal.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ struct FileSyncSessionModal<VPN: VPNService, FS: FileSyncDaemon>: View {
5454
pickingRemote = true
5555
} label: {
5656
Image(systemName: "folder")
57-
}.disabled(workspace == nil)
58-
.help(workspace == nil ? "Select a workspace first" : "Open File Picker")
57+
}.disabled(remoteHostname == nil)
58+
.help(remoteHostname == nil ? "Select a workspace first" : "Open File Picker")
5959
}
6060
}
6161
}.formStyle(.grouped).scrollDisabled(true).padding(.horizontal)
@@ -83,7 +83,7 @@ struct FileSyncSessionModal<VPN: VPNService, FS: FileSyncDaemon>: View {
8383
)) {} message: {
8484
Text(createError?.description ?? "An unknown error occurred.")
8585
}.sheet(isPresented: $pickingRemote) {
86-
FilePicker(host: workspace!.primaryHost!, outputAbsPath: $remotePath)
86+
FilePicker(host: remoteHostname!, outputAbsPath: $remotePath)
8787
.frame(width: 300, height: 400)
8888
}
8989
}

0 commit comments

Comments
 (0)
Please sign in to comment.