diff --git a/deluge/ui/web/js/Deluge.UI.js b/deluge/ui/web/js/Deluge.UI.js index 22d494ad6..768f2564b 100644 --- a/deluge/ui/web/js/Deluge.UI.js +++ b/deluge/ui/web/js/Deluge.UI.js @@ -74,9 +74,11 @@ Deluge.UI = { Deluge.Client = new Ext.ux.util.RpcClient({ url: '/json' }); + Deluge.Client.on('connected', function(e) { Deluge.Login.show(); - }); + }, this, {single: true}); + this.update = this.update.bind(this); },