Refresh branch title on window focus