Fix preferences window not updating when switching interfaces.