chore: Increased maximum height for the SFTP section; clicking a file toggles its selection state.

This commit is contained in:
ancion
2026-06-11 17:30:26 +08:00
parent 6dfa199dcb
commit 0cfd3a2fc2
+6 -1
View File
@@ -1660,6 +1660,11 @@ impl Ashell {
return;
}
self.mark_sftp_entry_selected(&entry.full_path, cx);
if let Some(sftp) = self.active_sftp_mut() {
if !sftp.selected_entries.remove(&entry.full_path) {
sftp.selected_entries.insert(entry.full_path);
}
}
}
fn mark_sftp_entry_selected(&mut self, path: &str, cx: &mut Context<Self>) {
@@ -3596,7 +3601,7 @@ impl Render for Ashell {
.child(
resizable_panel()
.size(px(248.))
.size_range(px(180.)..px(420.))
.size_range(px(180.)..px(1000.))
.child(self.render_sftp_panel(window, cx)),
),
),