mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Deselect the inventory slot after dropping an item.
This commit is contained in:
parent
7478d1a063
commit
9d8d61736b
@ -258,6 +258,7 @@ impl<'a> Widget for Bag<'a> {
|
||||
if let Some(to_drop) = state.selected_slot {
|
||||
if ui.widget_input(ui.window).clicks().left().next().is_some() {
|
||||
event = Some(Event::HudEvent(HudEvent::DropInventorySlot(to_drop)));
|
||||
state.update(|s| s.selected_slot = None);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user