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