Prevent nil Settings
This commit is contained in:
parent
3e24f8a758
commit
94f0276604
|
@ -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