Hide dashboard when changing repo - it can be called when dashboard is visible. Closes #1763 and #1769.
Select first staged item if there is no unstaged item.