mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 15:44:26 +00:00
panels-w8: clone the row icon (compile fix)
This commit is contained in:
@@ -310,7 +310,6 @@ impl<'a> HistoryPanel<'a> {
|
||||
.can_rename(|key: &HistoryKey| matches!(key, HistoryKey::Snapshot(_)))
|
||||
.empty(words.history_empty.clone())
|
||||
.selection(Bind::bound(&mut held))
|
||||
|
||||
.sizing(Sizing::Fill)
|
||||
.enabled(enabled)
|
||||
.drag_payload(move |drag: &ListDrag<HistoryKey>| set.contains(&drag.grabbed).then(|| drag.clone()));
|
||||
@@ -327,7 +326,7 @@ impl<'a> HistoryPanel<'a> {
|
||||
let out = list.show_items(ui, &items, &mut |_, icx| {
|
||||
let row = &rows[icx.at];
|
||||
let mut item = ListRow::new(row.label.clone()).cells(icx.cells()).state(icx.row.clone());
|
||||
if let Some(icon) = row.icon {
|
||||
if let Some(icon) = row.icon.clone() {
|
||||
item = item.icon(IconSpec::svg(icon));
|
||||
}
|
||||
if row.redo {
|
||||
|
||||
Reference in New Issue
Block a user