From 444272344ed7d29e84117eb8e6446f88ea28cc3c Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 11 Aug 2009 23:15:20 +0000 Subject: [PATCH] change it so the event is only subscribed to for a single fire --- deluge/ui/web/js/Deluge.UI.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); },