mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 20:31:47 +00:00
WebUI: Fix torrent table context menu
Don't show "Limit download speed" menu item for downloaded torrents.
This commit is contained in:
parent
a5e6cd256c
commit
165ab473df
@ -181,6 +181,8 @@ var ContextMenu = new Class({
|
|||||||
show_f_l_piece_prio = false;
|
show_f_l_piece_prio = false;
|
||||||
|
|
||||||
if (all_are_downloaded) {
|
if (all_are_downloaded) {
|
||||||
|
this.hideItem('DownloadLimit');
|
||||||
|
this.menu.getElement('a[href$=UploadLimit]').parentNode.addClass('separator');
|
||||||
this.hideItem('SequentialDownload');
|
this.hideItem('SequentialDownload');
|
||||||
this.hideItem('FirstLastPiecePrio');
|
this.hideItem('FirstLastPiecePrio');
|
||||||
this.showItem('SuperSeeding');
|
this.showItem('SuperSeeding');
|
||||||
@ -204,6 +206,8 @@ var ContextMenu = new Class({
|
|||||||
this.setItemChecked('SequentialDownload', all_are_seq_dl);
|
this.setItemChecked('SequentialDownload', all_are_seq_dl);
|
||||||
this.setItemChecked('FirstLastPiecePrio', all_are_f_l_piece_prio);
|
this.setItemChecked('FirstLastPiecePrio', all_are_f_l_piece_prio);
|
||||||
|
|
||||||
|
this.showItem('DownloadLimit');
|
||||||
|
this.menu.getElement('a[href$=UploadLimit]').parentNode.removeClass('separator');
|
||||||
this.hideItem('SuperSeeding');
|
this.hideItem('SuperSeeding');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user