From 57d3a3f52e3b36b842809ce13621bd174b2db821 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Tue, 10 May 2022 01:02:37 +1000 Subject: [PATCH] Fix UI Mouse Inspect hotkey not being implemented --- src/Inspectors/MouseInspector.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Inspectors/MouseInspector.cs b/src/Inspectors/MouseInspector.cs index 672bbd2..cb8a27e 100644 --- a/src/Inspectors/MouseInspector.cs +++ b/src/Inspectors/MouseInspector.cs @@ -113,17 +113,11 @@ namespace UnityExplorer.Inspectors public bool TryUpdate() { - if (ConfigManager.World_MouseInspect_Keybind.Value != KeyCode.None) - { - if (InputManager.GetKeyDown(ConfigManager.World_MouseInspect_Keybind.Value)) - Instance.StartInspect(MouseInspectMode.World); - } + if (InputManager.GetKeyDown(ConfigManager.World_MouseInspect_Keybind.Value)) + Instance.StartInspect(MouseInspectMode.World); - if (ConfigManager.World_MouseInspect_Keybind.Value != KeyCode.None) - { - if (InputManager.GetKeyDown(ConfigManager.World_MouseInspect_Keybind.Value)) - Instance.StartInspect(MouseInspectMode.World); - } + if (InputManager.GetKeyDown(ConfigManager.UI_MouseInspect_Keybind.Value)) + Instance.StartInspect(MouseInspectMode.UI); if (Inspecting) UpdateInspect();