mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'shandley/deselect-after-drop' into 'master'
Deselect the inventory slot after dropping an item. Closes #510 See merge request veloren/veloren!836
This commit is contained in:
commit
3c7a8a7ce7
@ -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