mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 21:21:24 -07:00
parent
d87533bf4c
commit
b52fa98a02
2 changed files with 42 additions and 0 deletions
|
@ -1536,6 +1536,20 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
this._this.selectRow(this.rowId);
|
||||
const row = this._this.rows.get(this.rowId);
|
||||
const state = row["full_data"].state;
|
||||
|
||||
const prefKey =
|
||||
(state !== "uploading")
|
||||
&& (state !== "stoppedUP")
|
||||
&& (state !== "forcedUP")
|
||||
&& (state !== "stalledUP")
|
||||
&& (state !== "queuedUP")
|
||||
&& (state !== "checkingUP")
|
||||
? "dblclick_download"
|
||||
: "dblclick_complete";
|
||||
|
||||
if (LocalPreferences.get(prefKey, "1") !== "1")
|
||||
return true;
|
||||
|
||||
if (state.includes("stopped"))
|
||||
startFN();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue