fix #29476: Sub-menus not on top if parent menu is clicked and MuseScore is hidden