gui: hide open dialogs when the gui gets closed

This commit is contained in:
Road-block
2016-12-24 11:11:19 +01:00
committed by shagu
parent ad4e68d681
commit 848ce1d700
+10
View File
@@ -22,6 +22,16 @@ pfUI:RegisterModule("gui", function ()
pfUI.gui:StopMovingOrSizing()
end)
pfUI.gui:SetScript("OnHide",function()
if pfQuestionDialog and pfQuestionDialog:IsShown() then
pfQuestionDialog:Hide()
pfQuestionDialog = nil
end
if ColorPickerFrame and ColorPickerFrame:IsShown() then
ColorPickerFrame:Hide()
end
end)
function pfUI.gui:SaveScale(frame, scale)
frame:SetScale(scale)