Run updateApps after switching between windows of the same app