aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/actions.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-09 00:32:05 +0300
committerGitHub <noreply@github.com>2026-09-09 00:32:05 +0300
commit8be4cf765afddfd9cf3206602ba4dab682a29fa1 (patch)
tree05bbf779fcaef09f32df3e7a50a053e9a656f58c /src/client/shell/actions.rs
parent8996fc54fe4596368a1677821b1a390a70c56ab0 (diff)
fix: restore autofocus when creating worktrees (#3787)
* fix: restore autofocus when creating worktrees refs #3766 * fix: let the client focus newly created worktrees refs #3766
Diffstat (limited to 'src/client/shell/actions.rs')
-rw-r--r--src/client/shell/actions.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/shell/actions.rs b/src/client/shell/actions.rs
index 834169fe..31408457 100644
--- a/src/client/shell/actions.rs
+++ b/src/client/shell/actions.rs
@@ -874,10 +874,9 @@ impl ClientShellState {
return self.handle_settings_endpoint_result(kind, result);
}
kind => {
- return (
- self.handle_worktree_endpoint_result(kind, result),
- Vec::new(),
- );
+ let mut outcome = ClientShellInput::default();
+ let repaint = self.handle_worktree_endpoint_result(kind, result, &mut outcome);
+ return (repaint || outcome.repaint, outcome.actions);
}
}
let repaint = match result {