mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
- ETA calculation now relies on average speed over all sessions
- New ETA calculation system saves memory - Updated Changelog
This commit is contained in:
parent
9b67807926
commit
e5b6a5605a
6 changed files with 22 additions and 87 deletions
|
@ -318,19 +318,11 @@ void DownloadingTorrents::hideOrShowColumn(int index) {
|
|||
downloadList->setColumnHidden(index, true);
|
||||
getActionHoSCol(index)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_cancel.png")));
|
||||
--nbVisibleColumns;
|
||||
if(index == ETA) {
|
||||
BTSession->setETACalculation(false);
|
||||
qDebug("Disable ETA calculation");
|
||||
}
|
||||
} else {
|
||||
// User want to display the column
|
||||
downloadList->setColumnHidden(index, false);
|
||||
getActionHoSCol(index)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_ok.png")));
|
||||
++nbVisibleColumns;
|
||||
if(index == ETA) {
|
||||
BTSession->setETACalculation(true);
|
||||
qDebug("Enable ETA calculation");
|
||||
}
|
||||
}
|
||||
//resize all others non-hidden columns
|
||||
for(unsigned int i=0; i<nbCols; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue