mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 08:20:13 +00:00
Update crates/ui-egui/src/panels/appearance.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
committed by
bflatastic
co-authored by
coderabbitai[bot]
parent
260d0fdbaf
commit
ca71c169a2
@@ -1456,9 +1456,10 @@ fn drop_on_buttons(app: &mut VectorcraftApp, ui: &Ui, node: Option<&Node>, sel:
|
||||
&& let Dragged::Effect(item, _) = what
|
||||
{
|
||||
select_row(app, ctx, item.map_or(Sel::None, Sel::Item));
|
||||
} else if removed && let Dragged::Effect(item, _) = what {
|
||||
} else if removed {
|
||||
let gone: Vec<usize> = gone.iter().map(|k| *k as usize).collect();
|
||||
highlight_after_removal(app, ctx, n, sel, Rows::Effects(item), &gone);
|
||||
let rows = if let Dragged::Effect(item, _) = what { Rows::Effects(item) } else { Rows::Items };
|
||||
highlight_after_removal(app, ctx, n, sel, rows, &gone);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user