mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 18:47:37 -07:00
Set WebUI download options using set preferences
"Start torrent" and "Create subfolder" are now set depending on the user's set preferences, which matches the behavior exhibited by the GUI.
This commit is contained in:
parent
3a130e1f74
commit
794053f212
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ getPreferences = function() {
|
|||
if (pref) {
|
||||
defaultSavePath = pref.save_path;
|
||||
$('savepath').setProperty('value', defaultSavePath);
|
||||
$('root_folder').checked = pref.create_subfolder_enabled;
|
||||
$('start_torrent').checked = !pref.start_paused_enabled;
|
||||
|
||||
if (pref.auto_tmm_enabled == 1) {
|
||||
$('autoTMM').selectedIndex = 1;
|
||||
$('savepath').disabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue