Skip to content

Commit a1fd971

Browse files
committed
support editing sessions
1 parent 91d773b commit a1fd971

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ struct FileSyncConfig<VPN: VPNService, FS: FileSyncDaemon>: View {
2929
}
3030
.width(min: 60, ideal: 80)
3131
}
32+
.contextMenu(forSelectionType: FileSyncSession.ID.self, menu: { _ in },
33+
primaryAction: { selectedSessions in
34+
if let session = selectedSessions.first {
35+
editingSession = fileSync.sessionState.first(where: { $0.id == session })
36+
}
37+
})
3238
.frame(minWidth: 400, minHeight: 200)
3339
.padding(.bottom, 25)
3440
.overlay(alignment: .bottom) {

0 commit comments

Comments
 (0)