By making sure the global menu bar is disabled when not needed. This should also help with memory usage. Fix #482