From 8f83fe513503f9caf45ad054186787dcaa683f8d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 17 Dec 2023 23:38:10 +0100 Subject: [PATCH] fix: Max field in value search not resetting when disabling range search --- plugins/builtin/source/content/views/view_find.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_find.cpp b/plugins/builtin/source/content/views/view_find.cpp index 3393e8d7f..4015b834f 100644 --- a/plugins/builtin/source/content/views/view_find.cpp +++ b/plugins/builtin/source/content/views/view_find.cpp @@ -740,7 +740,9 @@ namespace hex::plugin::builtin { ImGui::EndDisabled(); } - ImGui::Checkbox("hex.builtin.view.find.value.range"_lang, &settings.range); + if (ImGui::Checkbox("hex.builtin.view.find.value.range"_lang, &settings.range)) { + settings.inputMax = settings.inputMin; + } ImGui::NewLine(); const std::array InputTypes = {