mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
gui: hide open dialogs when the gui gets closed
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user