Module: deluge
Branch: master
Commit: b1cf2384896110ee8a4bf75e527d3bbabd34b560

Author: Damien Churchill <[email protected]>
Date:   Tue Apr 27 23:19:52 2010 +0100

show the preferences window when the protocol traffic and freespace icons are 
clicked

---

 deluge/ui/web/js/deluge-all/Statusbar.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/Statusbar.js 
b/deluge/ui/web/js/deluge-all/Statusbar.js
index f61ef4d..6136d2e 100644
--- a/deluge/ui/web/js/deluge-all/Statusbar.js
+++ b/deluge/ui/web/js/deluge-all/Statusbar.js
@@ -75,7 +75,11 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
                        text: ' ',
                        cls: 'x-btn-text-icon',
                        iconCls: 'x-deluge-traffic',
-                       tooltip: _('Protocol Traffic Download/Upload')
+                       tooltip: _('Protocol Traffic Download/Upload'),
+                       handler: function() {
+                               deluge.preferences.show();
+                               deluge.preferences.selectPage('Network');
+                       }
                }, '-', {
                        id: 'statusbar-dht',
                        text: ' ',
@@ -87,7 +91,11 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
                        text: ' ',
                        cls: 'x-btn-text-icon',
                        iconCls: 'x-deluge-freespace',
-                       tooltip: _('Freespace in download location')
+                       tooltip: _('Freespace in download location'),
+                       handler: function() {
+                               deluge.preferences.show();
+                               deluge.preferences.selectPage('Downloads');
+                       }
                });
                this.created = true;
        },

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to