mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
1. In option window add column 'download path' for watched folders and enlarge heigth.
2. Change logic checkbox in column 'download here': if it checked, then torrent file will download to watchdir, if state is unchecked, will be use download path from next column.
This commit is contained in:
parent
84f6a82d98
commit
1f17a7836d
8 changed files with 3519 additions and 11 deletions
|
@ -502,6 +502,16 @@ QList<bool> Preferences::getDownloadInScanDirs() const
|
|||
return Utils::Misc::boolListfromStringList(value("Preferences/Downloads/DownloadInScanDirs").toStringList());
|
||||
}
|
||||
|
||||
void Preferences::setDownloadPathsInScanDir(const QStringList &downloadpaths)
|
||||
{
|
||||
setValue(QString::fromUtf8("Preferences/Downloads/DownloadPaths"), downloadpaths);
|
||||
}
|
||||
|
||||
QStringList Preferences::getDownloadPathsInScanDir() const
|
||||
{
|
||||
return value(QString::fromUtf8("Preferences/Downloads/DownloadPaths"), QStringList()).toStringList();
|
||||
}
|
||||
|
||||
void Preferences::setDownloadInScanDirs(const QList<bool> &list)
|
||||
{
|
||||
setValue("Preferences/Downloads/DownloadInScanDirs", Utils::Misc::toStringList(list));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue