Make sidebar aware of the current view
This fixes a bug when switching the current view through the global menu or menubar wouldn't update the sidebar generalList.
This fixes a bug when switching the current view through the global menu or menubar wouldn't update the sidebar generalList.