gui: remove wizard data on configuration reset

This commit is contained in:
shagu
2018-04-17 20:49:33 +02:00
parent 891c1ba137
commit 4c3e8564a9
+2 -1
View File
@@ -620,7 +620,7 @@ pfUI:RegisterModule("gui", function ()
function()
_G["pfUI_init"] = {}
this:GetParent():Hide()
pfUI.gui:Reload()
pfUI.firstrun:NextStep()
end)
end, true)
@@ -628,6 +628,7 @@ pfUI:RegisterModule("gui", function ()
CreateQuestionDialog(T["Do you really want to reset your configuration?\nThis also includes frame positions"],
function()
_G["pfUI_config"] = {}
_G["pfUI_init"] = {}
pfUI:LoadConfig()
this:GetParent():Hide()
pfUI.gui:Reload()