option menu: reset currently open dropdownmenu when changing search filter

This commit is contained in:
yugecin 2017-05-28 19:45:04 +02:00
parent 5dc7299ec0
commit 48c8694020

View File

@ -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) {