diff --git a/src/gui/mod.rs b/src/gui/mod.rs index d6a3ea87..370ffde2 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -473,8 +473,9 @@ impl App { } }; - let res = - egui_dnd::dnd(ui, "dnd").show_vec(&mut profile.mods, |ui, item, handle, state| { + let res = egui_dnd::dnd(ui, ui.id().with("dnd")).show_vec( + &mut profile.mods, + |ui, item, handle, state| { ui.horizontal(|ui| { handle.ui(ui, |ui| { ui.label("☰"); @@ -482,7 +483,8 @@ impl App { ui_item(&mut ctx, ui, item, state.index); }); - }); + }, + ); if res.final_update().is_some() { ctx.needs_save = true;