Remove disabling effect on the stage and unstage toolbar buttons (#26936)
Closes #26883 Release Notes: - N/A
This commit is contained in:
parent
aba242d576
commit
dbe5399fc4
1 changed files with 0 additions and 11 deletions
|
@ -919,12 +919,6 @@ impl Render for ProjectDiffToolbar {
|
||||||
&StageAndNext,
|
&StageAndNext,
|
||||||
&focus_handle,
|
&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| {
|
.on_click(cx.listener(|this, _, window, cx| {
|
||||||
this.dispatch_action(&StageAndNext, window, cx)
|
this.dispatch_action(&StageAndNext, window, cx)
|
||||||
})),
|
})),
|
||||||
|
@ -936,11 +930,6 @@ impl Render for ProjectDiffToolbar {
|
||||||
&UnstageAndNext,
|
&UnstageAndNext,
|
||||||
&focus_handle,
|
&focus_handle,
|
||||||
))
|
))
|
||||||
.color(if button_states.unstage {
|
|
||||||
Color::Default
|
|
||||||
} else {
|
|
||||||
Color::Disabled
|
|
||||||
})
|
|
||||||
.on_click(cx.listener(|this, _, window, cx| {
|
.on_click(cx.listener(|this, _, window, cx| {
|
||||||
this.dispatch_action(&UnstageAndNext, window, cx)
|
this.dispatch_action(&UnstageAndNext, window, cx)
|
||||||
})),
|
})),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue