AVALANCHE: Rework leaveMenuBar().