Skip to content

Commit a553fb6

Browse files
committed
rebase
1 parent 1dfafa8 commit a553fb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncSessionModal.swift

Lines changed: 3 additions & 3 deletions
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)
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