mirror of
https://github.com/rust-kotlin/ashell.git
synced 2026-09-22 08:01:00 +00:00
chore: Increased maximum height for the SFTP section; clicking a file toggles its selection state.
This commit is contained in:
+6
-1
@@ -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)),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user