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)