mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
parent
74aa41371d
commit
56c4cc89b9
1 changed files with 3 additions and 3 deletions
|
@ -52,11 +52,11 @@ WatchedFolderOptionsDialog::WatchedFolderOptionsDialog(
|
||||||
m_ui->savePath->setMode(FileSystemPathEdit::Mode::DirectorySave);
|
m_ui->savePath->setMode(FileSystemPathEdit::Mode::DirectorySave);
|
||||||
m_ui->savePath->setDialogCaption(tr("Choose save path"));
|
m_ui->savePath->setDialogCaption(tr("Choose save path"));
|
||||||
|
|
||||||
const auto *session = BitTorrent::Session::instance();
|
|
||||||
|
|
||||||
m_ui->downloadPath->setMode(FileSystemPathEdit::Mode::DirectorySave);
|
m_ui->downloadPath->setMode(FileSystemPathEdit::Mode::DirectorySave);
|
||||||
m_ui->downloadPath->setDialogCaption(tr("Choose save path"));
|
m_ui->downloadPath->setDialogCaption(tr("Choose save path"));
|
||||||
m_ui->groupBoxDownloadPath->setChecked(watchedFolderOptions.addTorrentParams.useDownloadPath.value_or(session->isDownloadPathEnabled()));
|
|
||||||
|
const auto *session = BitTorrent::Session::instance();
|
||||||
|
m_useDownloadPath = watchedFolderOptions.addTorrentParams.useDownloadPath.value_or(session->isDownloadPathEnabled());
|
||||||
|
|
||||||
connect(m_ui->comboTTM, qOverload<int>(&QComboBox::currentIndexChanged), this, &WatchedFolderOptionsDialog::onTMMChanged);
|
connect(m_ui->comboTTM, qOverload<int>(&QComboBox::currentIndexChanged), this, &WatchedFolderOptionsDialog::onTMMChanged);
|
||||||
connect(m_ui->categoryComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this, &WatchedFolderOptionsDialog::onCategoryChanged);
|
connect(m_ui->categoryComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this, &WatchedFolderOptionsDialog::onCategoryChanged);
|
||||||
|
|
Loading…
Reference in a new issue