Menu command is disabled when using openDialog and executeAsModal in the command callback

I believe this topic is about same issue