Do not allow [re]running ssh tasks when not connected to the server (#19306)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-10-16 22:57:39 +03:00 committed by GitHub
parent 02f63e49ed
commit 56f69be2e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 7 deletions

View file

@ -384,13 +384,6 @@ impl PickerDelegate for TasksModalDelegate {
.start_slot::<Icon>(icon)
.end_slot::<AnyElement>(history_run_icon)
.spacing(ListItemSpacing::Sparse)
// .map(|this| {
// if Some(ix) <= self.divider_index {
// this.start_slot(Icon::new(IconName::HistoryRerun).size(IconSize::Small))
// } else {
// this.start_slot(v_flex().flex_none().size(IconSize::Small.rems()))
// }
// })
.when_some(tooltip_label, |list_item, item_label| {
list_item.tooltip(move |_| item_label.clone())
})