Use new Settingssystem in Dragonflight
This commit is contained in:
parent
8d4ce451be
commit
3e24f8a758
|
@ -1,4 +1,4 @@
|
|||
local lib = LibStub:NewLibrary("zzLDB", 4)
|
||||
local lib = LibStub:NewLibrary("zzLDB", 5)
|
||||
if not lib then return end
|
||||
local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
|
||||
local ldbicon = LibStub:GetLibrary("LibDBIcon-1.0")
|
||||
|
@ -22,11 +22,19 @@ function lib:DefaultOnClick(_, button, addon, childName)
|
|||
end
|
||||
end
|
||||
else
|
||||
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
|
||||
InterfaceOptionsFrame:Hide()
|
||||
if(not InCombatLockdown()) then
|
||||
if(SettingsPanel and SettingsPanel.CloseButton:IsVisible()) then
|
||||
SettingsPanel:Hide()
|
||||
elseif(InterfaceOptionsFrame and InterfaceOptionsFrame:IsVisible()) then
|
||||
InterfaceOptionsFrame:Hide()
|
||||
end
|
||||
else
|
||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
||||
if(Settings.OpenToCategory) then
|
||||
Settings.OpenToCategory(childName)
|
||||
else
|
||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue