Use helper function for logging messages

This commit is contained in:
Chocobo1 2022-07-06 17:03:34 +08:00
parent ec13bba4da
commit dba711d099
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
8 changed files with 26 additions and 29 deletions

View file

@ -471,7 +471,7 @@ void Application::torrentFinished(BitTorrent::Torrent *const torrent)
// Mail notification
if (pref->isMailNotificationEnabled())
{
Logger::instance()->addMessage(tr("Torrent: %1, sending mail notification").arg(torrent->name()));
LogMsg(tr("Torrent: %1, sending mail notification").arg(torrent->name()));
sendNotificationEmail(torrent);
}
}