Menubar: fixes #2775 hidesubmenu() worker function

Adds back in the `toplink` parameter which is used to determine if a
specific submenu should be closed rather than any open submenu.
Build: Fix spacing in updated deps

Fixes gh-2632
Merge pull request #2778 from nschonni/spacing-in-bumped-deps

Build: Fix spacing in updated deps
Merge pull request #2776 from patheard/menubar

Menubar: fixes #2775 hidesubmenu() worker function
Resolve merge conflicts.