Skip to content

Commit 9364187

Browse files
committed
Fix errors when using the keybind while certain special popups are open (fixes #21)
1 parent ed128f8 commit 9364187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function DialogKey:GetValidPopupButtons()
255255
local buttons = {}
256256
local popupFrames = {}
257257
if StaticPopup_ForEachShownDialog then
258-
StaticPopup_ForEachShownDialog(function(popup) table.insert(popupFrames, popup) end)
258+
StaticPopup_ForEachShownDialog(function(popup) if not popup.special then table.insert(popupFrames, popup) end end)
259259
else
260260
for i = 1, 4 do
261261
local popup = _G["StaticPopup" .. i]

0 commit comments

Comments
 (0)