Merge pull request #16587 from jagannatharjun/tracker-filter

Optimize torrent filters in GUI
This commit is contained in:
Chocobo1
2022-03-12 12:48:49 +08:00
committed by GitHub
8 changed files with 217 additions and 88 deletions

View File

@@ -2090,6 +2090,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