fix close config dialog on escape pressed

This commit is contained in:
Bunny67
2018-07-22 06:04:40 +03:00
parent 805697ed4e
commit 5dacae8de0
@@ -1727,7 +1727,7 @@ function AceConfigDialog:FeedGroup(appName,options,container,rootframe,path, isR
end end
end end
local old_CloseSpecialWindows local old_CloseWindows
local function RefreshOnUpdate() local function RefreshOnUpdate()
@@ -1825,10 +1825,10 @@ end
-- @param container An optional container frame to feed the options into -- @param container An optional container frame to feed the options into
-- @param ... The path to open after creating the options window (see `:SelectGroup` for details) -- @param ... The path to open after creating the options window (see `:SelectGroup` for details)
function AceConfigDialog:Open(appName, container, ...) function AceConfigDialog:Open(appName, container, ...)
if not old_CloseSpecialWindows then if not old_CloseWindows then
old_CloseSpecialWindows = CloseSpecialWindows old_CloseWindows = CloseWindows
CloseSpecialWindows = function() CloseWindows = function(ignoreCenter)
local found = old_CloseSpecialWindows() local found = old_CloseWindows(ignoreCenter)
return self:CloseAll() or found return self:CloseAll() or found
end end
end end