allow commands with hotkey guards to work

develop
myk002 2022-11-06 16:54:05 -08:00
parent fb7b55fb11
commit d8c86fd0b1
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -127,8 +127,8 @@ end
function MenuScreen:onSubmit(_, choice) function MenuScreen:onSubmit(_, choice)
if not choice then return end if not choice then return end
dfhack.screen.hideGuard(self, dfhack.run_command, choice.command)
self:dismiss() self:dismiss()
dfhack.run_command(choice.command)
end end
function MenuScreen:onSubmit2(_, choice) function MenuScreen:onSubmit2(_, choice)