aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/endpoint_navigation.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-09-08 17:51:59 +0300
committerGitHub <noreply@github.com>2026-09-08 17:51:59 +0300
commit68c7b78ec237034cbb0e21c8666842ed7991641d (patch)
tree3d5a63866fa785a3307959301f3022fa21bff5ed /src/client/shell/endpoint_navigation.rs
parentffa0892ef87d927eef78fe8068de4d90201fb20b (diff)
fix: collapse worktree groups with saved machines (#3781)
* fix: collapse worktree groups with saved machines refs #3778 * fix: scope worktree collapse by machine refs #3778 * fix: collapse machines without switching focus refs #3778 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/client/shell/endpoint_navigation.rs')
-rw-r--r--src/client/shell/endpoint_navigation.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/shell/endpoint_navigation.rs b/src/client/shell/endpoint_navigation.rs
index adb29c93..4f528c3a 100644
--- a/src/client/shell/endpoint_navigation.rs
+++ b/src/client/shell/endpoint_navigation.rs
@@ -59,16 +59,16 @@ impl ClientShellState {
point: (u16, u16),
outcome: &mut ClientShellInput,
) -> bool {
- let Some(endpoint_id) = self
+ let Some(hit) = self
.hits
.machines
.iter()
.find(|hit| super::contains(hit.rect, point))
- .map(|hit| hit.endpoint_id.clone())
else {
return false;
};
- if endpoint_id == self.active_endpoint_id {
+ let endpoint_id = hit.endpoint_id.clone();
+ if super::contains(hit.collapse_toggle, point) || endpoint_id == self.active_endpoint_id {
if !self.collapsed_endpoints.remove(&endpoint_id) {
self.collapsed_endpoints.insert(endpoint_id);
}