Git · ChangesList: each press names its section, rows are stops and one shows as current

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 00:18:25 -04:00
1 parent 9eab2019a8
commit edd2c125e5
4 files changed
+109 -22

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ pub fn changes(window: &mut Window, cx: &mut App) -> impl IntoElement + use<> {
.child(
div().w(px(420.)).child(
ChangesList::new("git-changes", now_staged, now_unstaged)
.on_action(move |path, action, _, cx| {
.on_action(move |path, _, action, _, cx| {
let (from, to) = match action {
ChangeAction::Stage => (&act_unstaged, &act_staged),
ChangeAction::Unstage => (&act_staged, &act_unstaged),