mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 18:40:49 +00:00
core: use empty config variable as fallback
This commit is contained in:
@@ -302,7 +302,7 @@ pfUI:SetScript("OnEvent", function()
|
|||||||
|
|
||||||
-- use "Modern" as default profile on a fresh install
|
-- use "Modern" as default profile on a fresh install
|
||||||
if pfUI.api.isempty(pfUI_init) and pfUI.api.isempty(pfUI_config) then
|
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
|
end
|
||||||
|
|
||||||
pfUI:LoadConfig()
|
pfUI:LoadConfig()
|
||||||
|
|||||||
Reference in New Issue
Block a user