Refresh branch title on window focus

Refresh the menu title with the current branch name on window focus.