We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2e60c4 commit b43133bCopy full SHA for b43133b
NoAutoclose.lua
@@ -145,8 +145,9 @@ function ns:ReworkSettingsOpenAndClose()
145
end
146
147
-- this closes the game menu when opening the settings ui, which makes it less buggy when pressing escape to close the settings UI
148
- if GameMenuButtonSettings then
149
- GameMenuButtonSettings:HookScript('OnClick', function()
+ local settingsButton = GameMenuButtonSettings or GameMenuButtonOptions;
+ if settingsButton then
150
+ settingsButton:HookScript('OnClick', function()
151
if GameMenuFrame and GameMenuFrame:IsShown() then
152
HideUIPanel(GameMenuFrame);
153
0 commit comments