From 9a69703ea7a7019d01dac3075d76ef291add3aa4 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 15 Jul 2021 14:25:52 -0300 Subject: [PATCH] Clicking on the minimap while the options panel is open will close it --- core/windows.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/windows.lua b/core/windows.lua index ac90c6a2..23b31859 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -1347,6 +1347,14 @@ end --> 1 = open options panel if (_detalhes.minimap.onclick_what_todo == 1) then + + if (_G.DetailsOptionsWindow) then + if (_G.DetailsOptionsWindow:IsShown()) then + _G.DetailsOptionsWindow:Hide() + return + end + end + local lower_instance = _detalhes:GetLowerInstanceNumber() if (not lower_instance) then local instance = _detalhes:GetInstance (1)