Perform own tracking of files progress

PR #18597.
This commit is contained in:
Vladimir Golovnev
2023-02-26 14:44:58 +03:00
committed by GitHub
parent 8df80b67f9
commit 2f9b313287
5 changed files with 85 additions and 84 deletions

View File

@@ -1,6 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2022 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2022-2023 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2012 Christophe Dumez <chris@qbittorrent.org>
*
* This program is free software; you can redistribute it and/or
@@ -237,11 +237,6 @@ public:
return QVector<qreal>(filesCount(), 0);
}
void fetchFilesProgress(std::function<void (QVector<qreal>)> resultHandler) const override
{
resultHandler(filesProgress());
}
QVector<qreal> availableFileFractions() const override
{
return QVector<qreal>(filesCount(), 0);