Fix OnClick for Dragonflight
This commit is contained in:
parent
32b4c51db4
commit
8f4ef11fb5
20
broker.lua
20
broker.lua
|
@ -65,11 +65,21 @@ local function updateainfo()
|
||||||
end
|
end
|
||||||
local function OnClick(self, button)
|
local function OnClick(self, button)
|
||||||
if(button == 'RightButton') then
|
if(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) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
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
|
||||||
elseif(button == 'MiddleButton') then
|
elseif(button == 'MiddleButton') then
|
||||||
local pCPU = C_CVar.GetCVarBool("scriptProfile")
|
local pCPU = C_CVar.GetCVarBool("scriptProfile")
|
||||||
|
|
Loading…
Reference in New Issue