diff --git a/modules/gui.lua b/modules/gui.lua index 6949e2e0..b987832a 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1474,7 +1474,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateQuestionDialog(T["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"], function() _G["pfUI_init"] = {} - _G["pfUI_config"] = {} + _G["pfUI_config"] = pfUI.api.CopyTable(pfUI_profiles["Modern"]) _G["pfUI_playerDB"] = {} _G["pfUI_profiles"] = {} _G["pfUI_cache"] = {} @@ -1487,7 +1487,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateConfig(nil, T["Configuration"], C.global, "profile", "button", function() CreateQuestionDialog(T["Do you really want to reset your configuration?\nThis also includes frame positions"], function() - _G["pfUI_config"] = {} + _G["pfUI_config"] = pfUI.api.CopyTable(pfUI_profiles["Modern"]) _G["pfUI_init"] = {} pfUI:LoadConfig() this:GetParent():Hide() diff --git a/pfUI.lua b/pfUI.lua index 754190c5..b2ab937f 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -300,6 +300,11 @@ pfUI:SetScript("OnEvent", function() pfUI.version.fix = tonumber(fix) or 0 pfUI.version.string = pfUI.version.major .. "." .. pfUI.version.minor .. "." .. pfUI.version.fix + -- 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"]) + end + pfUI:LoadConfig() pfUI:MigrateConfig() pfUI:UpdateFonts()