mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Update free disk space label on Category change in Auto Mode
Closes #8772. This will fix issue that "Free space on disk:" label in Add New Torrent dialog not updated on Category change when Torrent Management Mode is on Auto mode.
This commit is contained in:
parent
d09c5e529c
commit
48fff37143
@ -421,6 +421,7 @@ void AddNewTorrentDialog::categoryChanged(int index)
|
|||||||
if (m_ui->comboTTM->currentIndex() == 1) {
|
if (m_ui->comboTTM->currentIndex() == 1) {
|
||||||
QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->categoryComboBox->currentText());
|
QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->categoryComboBox->currentText());
|
||||||
m_ui->savePath->setSelectedPath(Utils::Fs::toNativePath(savePath));
|
m_ui->savePath->setSelectedPath(Utils::Fs::toNativePath(savePath));
|
||||||
|
updateDiskSpaceLabel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -682,6 +683,7 @@ void AddNewTorrentDialog::TMMChanged(int index)
|
|||||||
m_ui->savePath->clear();
|
m_ui->savePath->clear();
|
||||||
QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->categoryComboBox->currentText());
|
QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->categoryComboBox->currentText());
|
||||||
m_ui->savePath->addItem(savePath);
|
m_ui->savePath->addItem(savePath);
|
||||||
|
updateDiskSpaceLabel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user