mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-28 17:58:42 +00:00
tasks: Use unique id for run indicator (#11846)
This fixes a small visual issue with the run indicator. As all run indicators use the same element id they all show up as pressed when clicking on a single button. We can safely use a combination of "run_indicator" and the actual row as the element id, as there can only ever be one run indicator per line. Before: <img width="552" alt="Screenshot 2024-05-15 at 12 24 08" src="https://github.com/zed-industries/zed/assets/53836821/18779f1a-0984-488f-83fd-4a6a561f223e"> After: <img width="633" alt="image" src="https://github.com/zed-industries/zed/assets/53836821/07ea26b5-06ad-4955-8250-d96d4704220c"> Release Notes: - Fixed an issue where all run buttons would show up as pressed when clicking on a single run button
This commit is contained in:
parent
266643440c
commit
26ffdaffe2
1 changed files with 1 additions and 1 deletions
|
@ -4560,7 +4560,7 @@ impl Editor {
|
|||
row: DisplayRow,
|
||||
cx: &mut ViewContext<Self>,
|
||||
) -> IconButton {
|
||||
IconButton::new("run_indicator", ui::IconName::Play)
|
||||
IconButton::new(("run_indicator", row.0 as usize), ui::IconName::Play)
|
||||
.icon_size(IconSize::XSmall)
|
||||
.size(ui::ButtonSize::None)
|
||||
.icon_color(Color::Muted)
|
||||
|
|
Loading…
Reference in a new issue