mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
Don't show added torrent notification during startup.
This commit is contained in:
@@ -2458,6 +2458,9 @@ void Session::createTorrentHandle(const libt::torrent_handle &nativeHandle)
|
||||
|
||||
// Send torrent addition signal
|
||||
emit torrentAdded(torrent);
|
||||
// Send new torrent signal
|
||||
if (!data.resumed)
|
||||
emit torrentNew(torrent);
|
||||
}
|
||||
|
||||
void Session::handleAddTorrentAlert(libt::add_torrent_alert *p)
|
||||
|
||||
@@ -285,6 +285,7 @@ namespace BitTorrent
|
||||
void torrentsUpdated();
|
||||
void addTorrentFailed(const QString &error);
|
||||
void torrentAdded(BitTorrent::TorrentHandle *const torrent);
|
||||
void torrentNew(BitTorrent::TorrentHandle *const torrent);
|
||||
void torrentAboutToBeRemoved(BitTorrent::TorrentHandle *const torrent);
|
||||
void torrentPaused(BitTorrent::TorrentHandle *const torrent);
|
||||
void torrentResumed(BitTorrent::TorrentHandle *const torrent);
|
||||
|
||||
Reference in New Issue
Block a user