Skip to content

Commit

Permalink
Auto closing only escapable windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaaznar committed Oct 6, 2015
1 parent c426781 commit cf7f8ac
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions ActionControls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ local EnumInputKeys =
Esc = InputKey:newFromKeyParams(1, 0, 1)
}

local BlockingWindowNames =
{
"GroupInviteDialog",
"GroupMentorDialog",
"GroupRequestDialog"
}

-----------------------------------------------------------------------------------------------
-- ActionControls Module Definition
-----------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -404,16 +397,8 @@ function ActionControls:CloseInterruptWindows()
for _,strata in ipairs(Apollo.GetStrata()) do
for _,window in ipairs(Apollo.GetWindowsInStratum(strata)) do
local windowName = window:GetName()
local isAlwaysBlocking = false

for _,w in ipairs(BlockingWindowNames) do
if w == windowName then
isAlwaysBlocking = true
break
end
end

if window:IsStyleOn("InterruptControl") and not isAlwaysBlocking
if window:IsStyleOn("InterruptControl") and window:IsStyleOn("Escapable")
then
if window:IsShown() or window:IsVisible() then
self.log:Debug("Closing interrupt window '%s': ", window:GetName())
Expand Down

0 comments on commit cf7f8ac

Please sign in to comment.