Skip to content

Commit

Permalink
WebUI: Correctly apply changed "save path" of RSS rules
Browse files Browse the repository at this point in the history
PR #21030.
Closes #20141.
  • Loading branch information
glassez authored Jul 8, 2024
1 parent 87a202c commit eba5cbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/webui/www/private/views/rssDownloader.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@
rulesList[rule].torrentParams.save_path = $("saveToText").value;
rulesList[rule].torrentParams.use_auto_tmm = false;
}
else {
rulesList[rule].torrentParams.save_path = "";
}

switch ($("addStoppedCombobox").value) {
case "default":
Expand Down Expand Up @@ -742,12 +745,12 @@
$("lastMatchText").textContent = "QBT_TR(Last Match: Unknown)QBT_TR[CONTEXT=AutomatedRssDownloader]";
}

if (rulesList[ruleName].torrentParams.stopped === null)
if ((rulesList[ruleName].torrentParams.stopped === undefined) || (rulesList[ruleName].torrentParams.stopped === null))
$("addStoppedCombobox").value = "default";
else
$("addStoppedCombobox").value = rulesList[ruleName].torrentParams.stopped ? "always" : "never";

if (rulesList[ruleName].torrentParams.content_layout === null)
if ((rulesList[ruleName].torrentParams.content_layout === undefined) || (rulesList[ruleName].torrentParams.content_layout === null))
$("contentLayoutCombobox").value = "Default";
else
$("contentLayoutCombobox").value = rulesList[ruleName].torrentParams.content_layout;
Expand Down

0 comments on commit eba5cbb

Please sign in to comment.