Fix Settings
This commit is contained in:
parent
05b22e0faf
commit
6dd401917c
20
broker.lua
20
broker.lua
|
@ -71,11 +71,21 @@ local function OnClick(_, button)
|
||||||
bclick()
|
bclick()
|
||||||
end
|
end
|
||||||
elseif(button=="RightButton") then
|
elseif(button=="RightButton") then
|
||||||
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
|
if(not InCombatLockdown()) then
|
||||||
InterfaceOptionsFrame:Hide()
|
if(SettingsPanel) then
|
||||||
else
|
if(SettingsPanel:IsVisible()) then
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
SettingsPanel:Hide()
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName) -- Call it twice because auf WoW-Bug
|
else
|
||||||
|
Settings.OpenToCategory(childName)
|
||||||
|
end
|
||||||
|
elseif(InterfaceOptionsFrame) then
|
||||||
|
if(InterfaceOptionsFrame:IsVisible()) then
|
||||||
|
InterfaceOptionsFrame:Hide()
|
||||||
|
else
|
||||||
|
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||||
|
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue