git_panel: Fix FocusChanges does nothing with no entries (#42553)

Closes #31155

Release Notes:

- Ensure `git_panel::FocusChanges` bypasses the panel’s `Focusable`
logic and directly focuses the `ChangesList` handle so the command works
even when the repository has no entries.
- Keep the `Focusable` behavior from the commit c609b8f (which routes
empty panels to the commit editor) by handling this special-case action
rather than regressing the default focus experience.
This commit is contained in:
Xipeng Jin authored and GitHub committed 2025-11-13 21:59:39 -05:00
1 parent bde5aa2202
commit 80d2ce01bf
1 file changed
+1 -1
+1 -1
View File
@@ -745,7 +745,7 @@ impl GitPanel {
) {
self.select_first_entry_if_none(cx);
cx.focus_self(window);
self.focus_handle.focus(window);
cx.notify();
}