_Uninstall() before _Hide() in BMenu because the window must be available when we _Uninstall() especially for shortcuts. Remove #define and always assume USE_CACHED_MENUWINDOW. _Uninstall() whenever we _Hide() in BMenu. Change-Id: I5dae85f6edf1f0b4ccf67a6d9d77470576671cee Reviewed-on: https://review.haiku-os.org/c/haiku/+/9012 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>