Plugin Sync: change to use window.dialog and dim the Authorize button when authorizing