mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
fix close config dialog on escape pressed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user