mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
only enable the extra menu options if it is a label
This commit is contained in:
parent
e05384909a
commit
c8ada0ba07
1 changed files with 5 additions and 2 deletions
|
@ -128,8 +128,11 @@ Deluge.plugins.LabelPlugin = Ext.extend(Deluge.Plugin, {
|
||||||
onLabelContextMenu: function(dv, i, node, e) {
|
onLabelContextMenu: function(dv, i, node, e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (!this.labelMenu) this.createMenu();
|
if (!this.labelMenu) this.createMenu();
|
||||||
|
if (dv.getRecord(node).get('filter')) {
|
||||||
this.labelMenu.items.get(1).setDisabled(false);
|
this.labelMenu.items.get(1).setDisabled(false);
|
||||||
this.labelMenu.items.get(2).setDisabled(false);
|
this.labelMenu.items.get(2).setDisabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
dv.select(i);
|
dv.select(i);
|
||||||
this.labelMenu.showAt(e.getXY());
|
this.labelMenu.showAt(e.getXY());
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue