From 48c8694020cc6fe7221635657e3192eac1d8d8c3 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 28 May 2017 19:45:04 +0200 Subject: [PATCH] option menu: reset currently open dropdownmenu when changing search filter --- src/yugecin/opsudance/ui/OptionsOverlay.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/yugecin/opsudance/ui/OptionsOverlay.java b/src/yugecin/opsudance/ui/OptionsOverlay.java index cebe18f1..55f83871 100644 --- a/src/yugecin/opsudance/ui/OptionsOverlay.java +++ b/src/yugecin/opsudance/ui/OptionsOverlay.java @@ -1088,6 +1088,10 @@ public class OptionsOverlay extends OverlayOpsuState { } updateHoverOption(prevMouseX, prevMouseY); updateActiveSection(); + if (openDropdownMenu != null) { + openDropdownMenu.reset(); + openDropdownMenu = null; + } } private boolean hasSearchResults(String searchText) {