core: use empty config variable as fallback

This commit is contained in:
shagu
2024-05-19 21:49:37 +02:00
parent 82759a9f81
commit 2bc2f2aeb1
+1 -1
View File
@@ -302,7 +302,7 @@ pfUI:SetScript("OnEvent", function()
-- use "Modern" as default profile on a fresh install
if pfUI.api.isempty(pfUI_init) and pfUI.api.isempty(pfUI_config) then
pfUI_config = pfUI.api.CopyTable(pfUI_profiles["Modern"])
pfUI_config = pfUI.api.CopyTable(pfUI_profiles["Modern"]) or {}
end
pfUI:LoadConfig()