mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Clean up 'recursive download' related code
Don't load .torrent files too early, otherwise qbt might emit a dubious error log message if the .torrent file is invalid.
This commit is contained in:
parent
80759f9e69
commit
f8a2fbc4c5
6 changed files with 42 additions and 37 deletions
|
@ -996,14 +996,14 @@ void Preferences::resolvePeerHostNames(const bool resolve)
|
|||
setValue(u"Preferences/Connection/ResolvePeerHostNames"_qs, resolve);
|
||||
}
|
||||
|
||||
bool Preferences::recursiveDownloadDisabled() const
|
||||
bool Preferences::isRecursiveDownloadEnabled() const
|
||||
{
|
||||
return value(u"Preferences/Advanced/DisableRecursiveDownload"_qs, false);
|
||||
return !value(u"Preferences/Advanced/DisableRecursiveDownload"_qs, false);
|
||||
}
|
||||
|
||||
void Preferences::disableRecursiveDownload(const bool disable)
|
||||
void Preferences::setRecursiveDownloadEnabled(const bool enable)
|
||||
{
|
||||
setValue(u"Preferences/Advanced/DisableRecursiveDownload"_qs, disable);
|
||||
setValue(u"Preferences/Advanced/DisableRecursiveDownload"_qs, !enable);
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue