Prevent nil Settings
This commit is contained in:
parent
8cd03059f9
commit
9b440d11a9
|
@ -29,7 +29,7 @@ function lib:DefaultOnClick(_, button, addon, childName)
|
||||||
InterfaceOptionsFrame:Hide()
|
InterfaceOptionsFrame:Hide()
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if(Settings.OpenToCategory) then
|
if(Settings and Settings.OpenToCategory) then
|
||||||
Settings.OpenToCategory(childName)
|
Settings.OpenToCategory(childName)
|
||||||
else
|
else
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||||
|
|
Loading…
Reference in New Issue