git: Disable "stage all" checkbox when no entries (#23608)
Release Notes: - N/A
This commit is contained in:
parent
40c18be541
commit
9d8d21a4dc
1 changed files with 1 additions and 0 deletions
|
@ -829,6 +829,7 @@ impl GitPanel {
|
|||
Tooltip::text("Stage all changes", cx)
|
||||
}
|
||||
})
|
||||
.disabled(entry_count == 0)
|
||||
.on_click(cx.listener(move |git_panel, _, cx| match all_staged {
|
||||
true => git_panel.unstage_all(&UnstageAll, cx),
|
||||
false => git_panel.stage_all(&StageAll, cx),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue