mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
gui: fix profiles
This commit is contained in:
+2
-2
@@ -760,7 +760,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
if C.global.profile and pfUI_profiles[C.global.profile] then
|
||||
CreateQuestionDialog("Load profile '|cff33ffcc" .. C.global.profile .. "|r'?", function()
|
||||
local selp = C.global.profile
|
||||
C = CopyTable(pfUI_profiles[C.global.profile])
|
||||
_G["pfUI_config"] = CopyTable(pfUI_profiles[C.global.profile])
|
||||
C.global.profile = selp
|
||||
ReloadUI()
|
||||
end)
|
||||
@@ -1101,7 +1101,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
_G["pfUI_init"] = {}
|
||||
_G["pfUI_config"] = {}
|
||||
_G["pfUI_playerDB"] = {}
|
||||
pfUI_profiles = {}
|
||||
_G["pfUI_profiles"] = {}
|
||||
pfUI:LoadConfig()
|
||||
this:GetParent():Hide()
|
||||
pfUI.gui:Reload()
|
||||
|
||||
Reference in New Issue
Block a user