Don't call non-existent elements

Fixed a regression where the script tries to access elements that no longer
exist on the page, because they were replaced with others by a previous change.
This commit is contained in:
Vladimir Golovnev (Glassez) 2020-12-30 16:45:49 +03:00 committed by sledgehammer999
commit 26ce187b30
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -72,7 +72,6 @@ window.qBittorrent.Download = (function() {
defaultSavePath = pref.save_path;
$('savepath').setProperty('value', defaultSavePath);
$('rootFolder').checked = pref.create_subfolder_enabled;
$('startTorrent').checked = !pref.start_paused_enabled;
if (pref.auto_tmm_enabled == 1) {