[WIN] Update status of menuitems in the menu bar. Fix #391.