Fix menu not hiding when configuration dialog is clicked.