From f6d7e2d4a431219d656d29e1d5a510e64b612991 Mon Sep 17 00:00:00 2001 From: Imbris Date: Fri, 17 May 2019 23:01:18 -0400 Subject: [PATCH] Tweak settings change event handling in hud Former-commit-id: 7b9a3163f2e85d202ef295cf6bd63de3ce753640 --- voxygen/src/hud/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index 1f1b51d590..70a9416e2c 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -463,6 +463,10 @@ impl Hud { pub fn handle_event(&mut self, event: WinEvent, global_state: &mut GlobalState) -> bool { let cursor_grabbed = global_state.window.is_cursor_grabbed(); let handled = match event { + WinEvent::SettingsChanged => { + self.settings = global_state.settings.clone(); + false + } WinEvent::Ui(event) => { if (self.typing() && event.is_keyboard() && self.show.ui) || !(cursor_grabbed && event.is_keyboard_or_mouse()) @@ -541,10 +545,6 @@ impl Hud { _ => self.typing(), }, WinEvent::Char(_) => self.typing(), - WinEvent::SettingsChanged => { - self.settings = global_state.settings.clone(); - true - } _ => false, }; // Handle cursor grab.