GUI: manage the enabled state of buttons which modify the message flags

BUG: 320618