mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-05-05 13:51:16 +00:00
修复 某些情况下默认保存目录不出现在下载目录列表中
bug来源: transmission.downloadDirs会在system.js中初始化,并保存默认保存目录 种子开始加载时,transmission.downloadDirs又会在transmission.torrents.js重新初始化从而丢失默认保存目录
This commit is contained in:
parent
ba0cc207cc
commit
6305b8aaa3
@ -91,7 +91,9 @@ transmission.torrents = {
|
|||||||
this.warning = new Array();
|
this.warning = new Array();
|
||||||
this.btItems = new Array();
|
this.btItems = new Array();
|
||||||
// All download directories used by current torrents
|
// All download directories used by current torrents
|
||||||
|
if (transmission.downloadDirs == undefined){
|
||||||
transmission.downloadDirs = new Array();
|
transmission.downloadDirs = new Array();
|
||||||
|
}
|
||||||
|
|
||||||
var _Status = transmission._status;
|
var _Status = transmission._status;
|
||||||
this.status = {};
|
this.status = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user