We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4c322 commit 33831fcCopy full SHA for 33831fc
NoAutoclose.lua
@@ -484,7 +484,13 @@ function ns:initOptions()
484
485
SLASH_NOAUTOCLOSE1 = '/noautoclose';
486
SLASH_NOAUTOCLOSE2 = '/nac';
487
- SlashCmdList['NOAUTOCLOSE'] = function() Settings.OpenToCategory(category:GetID()); end;
+ SlashCmdList['NOAUTOCLOSE'] = function()
488
+ if C_SettingsUtil and C_SettingsUtil.OpenSettingsPanel and InCombatLockdown() then
489
+ print("Cannot open the settings in combat")
490
+ return;
491
+ end
492
+ Settings.OpenToCategory(category:GetID());
493
+ end;
494
end
495
496
function ns:GetMoverFrame(onMoveCallback)
0 commit comments