Prevent nil Settings

This commit is contained in:
Robin Hüskes 2022-10-06 13:15:08 +02:00
parent 3e24f8a758
commit 94f0276604
1 changed files with 1 additions and 1 deletions

View File

@ -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)