mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
should speed up startup
This commit is contained in:
parent
01bc15d3f4
commit
8b40e43432
5 changed files with 4 additions and 6 deletions
|
@ -124,7 +124,6 @@ void FinishedTorrents::addTorrent(QString hash){
|
|||
// Update the number of finished torrents
|
||||
++nbFinished;
|
||||
emit finishedTorrentsNumberChanged(nbFinished);
|
||||
sortFinishedList();
|
||||
}
|
||||
|
||||
void FinishedTorrents::torrentAdded(QTorrentHandle& h) {
|
||||
|
|
|
@ -60,7 +60,6 @@ class FinishedTorrents : public QWidget, public Ui::seeding {
|
|||
void displayFinishedHoSMenu(const QPoint&);
|
||||
void setRowColor(int row, QString color);
|
||||
void saveColWidthFinishedList() const;
|
||||
void loadLastSortedColumn();
|
||||
void toggleFinishedListSortOrder(int index);
|
||||
void sortFinishedList(int index=-1, Qt::SortOrder sortOrder=Qt::AscendingOrder);
|
||||
void sortFinishedListFloat(int index, Qt::SortOrder sortOrder);
|
||||
|
@ -84,6 +83,7 @@ class FinishedTorrents : public QWidget, public Ui::seeding {
|
|||
void propertiesSelection();
|
||||
void deleteTorrent(QString hash);
|
||||
void showPropertiesFromHash(QString hash);
|
||||
void loadLastSortedColumn();
|
||||
|
||||
signals:
|
||||
void torrentMovedFromFinishedList(QString);
|
||||
|
|
|
@ -166,6 +166,8 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||
configureSession(true);
|
||||
// Resume unfinished torrents
|
||||
BTSession->resumeUnfinishedTorrents();
|
||||
downloadingTorrentTab->loadLastSortedColumn();
|
||||
finishedTorrentTab->loadLastSortedColumn();
|
||||
// Add torrent given on command line
|
||||
processParams(torrentCmdLine);
|
||||
// Initialize Web UI
|
||||
|
|
|
@ -617,7 +617,6 @@ void DownloadingTorrents::addTorrent(QString hash) {
|
|||
}
|
||||
++nbTorrents;
|
||||
emit unfinishedTorrentsNumberChanged(nbTorrents);
|
||||
sortDownloadList();
|
||||
}
|
||||
|
||||
void DownloadingTorrents::sortDownloadListFloat(int index, Qt::SortOrder sortOrder) {
|
||||
|
@ -773,7 +772,6 @@ bool DownloadingTorrents::loadColWidthDLList() {
|
|||
for(unsigned int i=0; i<listSize; ++i) {
|
||||
downloadList->header()->resizeSection(i, width_list.at(i).toInt());
|
||||
}
|
||||
loadLastSortedColumn();
|
||||
qDebug("Download list columns width loaded");
|
||||
return true;
|
||||
}
|
||||
|
@ -823,7 +821,6 @@ void DownloadingTorrents::torrentAdded(QTorrentHandle& h) {
|
|||
}
|
||||
++nbTorrents;
|
||||
emit unfinishedTorrentsNumberChanged(nbTorrents);
|
||||
sortDownloadList();
|
||||
}
|
||||
|
||||
void DownloadingTorrents::updateFileSizeAndProgress(QString hash) {
|
||||
|
|
|
@ -84,7 +84,6 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
|
|||
void hideOrShowColumnRatio();
|
||||
void hideOrShowColumnEta();
|
||||
void hideOrShowColumnPriority();
|
||||
void loadLastSortedColumn();
|
||||
void forceRecheck();
|
||||
|
||||
public slots:
|
||||
|
@ -97,6 +96,7 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
|
|||
void showPropertiesFromHash(QString hash);
|
||||
void hidePriorityColumn(bool hide);
|
||||
void sortProgressColumn(QString hash);
|
||||
void loadLastSortedColumn();
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue