mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-01 23:19:18 +03:00
Merge pull request #9210 from Chocobo1/options
Add options in AddNewTorrentDialog
This commit is contained in:
commit
7e3cf99bb9
2 changed files with 20 additions and 0 deletions
|
@ -126,6 +126,9 @@ AddNewTorrentDialog::AddNewTorrentDialog(const BitTorrent::AddTorrentParams &inP
|
||||||
else
|
else
|
||||||
m_ui->createSubfolderCheckBox->setChecked(session->isCreateTorrentSubfolder());
|
m_ui->createSubfolderCheckBox->setChecked(session->isCreateTorrentSubfolder());
|
||||||
|
|
||||||
|
m_ui->sequentialCheckBox->setChecked(m_torrentParams.sequential);
|
||||||
|
m_ui->firstLastCheckBox->setChecked(m_torrentParams.firstLastPiecePriority);
|
||||||
|
|
||||||
m_ui->skipCheckingCheckBox->setChecked(m_torrentParams.skipChecking);
|
m_ui->skipCheckingCheckBox->setChecked(m_torrentParams.skipChecking);
|
||||||
m_ui->doNotDeleteTorrentCheckBox->setVisible(TorrentFileGuard::autoDeleteMode() != TorrentFileGuard::Never);
|
m_ui->doNotDeleteTorrentCheckBox->setVisible(TorrentFileGuard::autoDeleteMode() != TorrentFileGuard::Never);
|
||||||
|
|
||||||
|
@ -658,6 +661,9 @@ void AddNewTorrentDialog::accept()
|
||||||
m_torrentParams.addPaused = TriStateBool(!m_ui->startTorrentCheckBox->isChecked());
|
m_torrentParams.addPaused = TriStateBool(!m_ui->startTorrentCheckBox->isChecked());
|
||||||
m_torrentParams.createSubfolder = TriStateBool(m_ui->createSubfolderCheckBox->isChecked());
|
m_torrentParams.createSubfolder = TriStateBool(m_ui->createSubfolderCheckBox->isChecked());
|
||||||
|
|
||||||
|
m_torrentParams.sequential = m_ui->sequentialCheckBox->isChecked();
|
||||||
|
m_torrentParams.firstLastPiecePriority = m_ui->firstLastCheckBox->isChecked();
|
||||||
|
|
||||||
QString savePath = m_ui->savePath->selectedPath();
|
QString savePath = m_ui->savePath->selectedPath();
|
||||||
if (m_ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
|
if (m_ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
|
||||||
m_torrentParams.useAutoTMM = TriStateBool::False;
|
m_torrentParams.useAutoTMM = TriStateBool::False;
|
||||||
|
|
|
@ -181,6 +181,20 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QCheckBox" name="sequentialCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Download in sequential order</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QCheckBox" name="firstLastCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Download first and last pieces first</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue