Teach RepoStateWidget to act on deactivation