Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove disabling effect on the stage and unstage toolbar buttons (#26936)

Cole Millerdbe5399fc43b
diff --git a/crates/git_ui/src/project_diff.rs b/crates/git_ui/src/project_diff.rs
index d24c7807345..ec43467181b 100644
--- a/crates/git_ui/src/project_diff.rs
+++ b/crates/git_ui/src/project_diff.rs
@@ -919,12 +919,6 @@ impl Render for ProjectDiffToolbar {
&StageAndNext,
&focus_handle,
))
- // don't actually disable the button so it's mashable
- .color(if button_states.stage {
- Color::Default
- } else {
- Color::Disabled
- })
.on_click(cx.listener(|this, _, window, cx| {
this.dispatch_action(&StageAndNext, window, cx)
})),
@@ -936,11 +930,6 @@ impl Render for ProjectDiffToolbar {
&UnstageAndNext,
&focus_handle,
))
- .color(if button_states.unstage {
- Color::Default
- } else {
- Color::Disabled
- })
.on_click(cx.listener(|this, _, window, cx| {
this.dispatch_action(&UnstageAndNext, window, cx)
})),