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

This commit is contained in:
Damien Churchill 2010-04-27 23:19:52 +01:00
parent 7fe5d37094
commit b1cf238489
1 changed files with 10 additions and 2 deletions

View File

@ -75,7 +75,11 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
text: ' ', text: ' ',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
iconCls: 'x-deluge-traffic', 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', id: 'statusbar-dht',
text: ' ', text: ' ',
@ -87,7 +91,11 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
text: ' ', text: ' ',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
iconCls: 'x-deluge-freespace', 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; this.created = true;
}, },