Improve Status Filter

replaces quadratic update operation with linear
This commit is contained in:
Prince Gupta 2022-03-05 14:04:27 +05:30
parent 25be00931a
commit 30319e51e5
4 changed files with 161 additions and 59 deletions

View file

@ -2085,6 +2085,11 @@ QVector<Torrent *> Session::torrents() const
return result;
}
qsizetype Session::torrentsCount() const
{
return m_torrents.size();
}
bool Session::addTorrent(const QString &source, const AddTorrentParams &params)
{
// `source`: .torrent file path/url or magnet uri