mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix issue #790: hotbar working while ui is toggled off
This commit is contained in:
parent
65f16ba4c1
commit
9c184b60e4
@ -2400,7 +2400,6 @@ impl Hud {
|
||||
self.force_ungrab = !self.force_ungrab;
|
||||
true
|
||||
},
|
||||
_ if !self.show.ui => false,
|
||||
WinEvent::Zoom(_) => !cursor_grabbed && !self.ui.no_widget_capturing_mouse(),
|
||||
|
||||
WinEvent::InputUpdate(GameInput::Chat, true) => {
|
||||
@ -2624,7 +2623,7 @@ impl Hud {
|
||||
|
||||
if !self.show.ui {
|
||||
// Optimization: skip maintaining UI when it's off.
|
||||
return vec![];
|
||||
return std::mem::replace(&mut self.events, Vec::new());
|
||||
}
|
||||
|
||||
if let Some(maybe_id) = self.to_focus.take() {
|
||||
|
Loading…
Reference in New Issue
Block a user