From 9b6d746c6fd9dffcbd584db5461755415eaf91bb Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 4 Apr 2017 09:19:54 +0200 Subject: [PATCH] gui: fix profiles --- modules/gui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gui.lua b/modules/gui.lua index 8999a50f..683e228a 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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()