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

@ -1106,7 +1106,7 @@ void MainWindow::notifyOfUpdate(const QString &)
{
// Show restart message
m_statusBar->showRestartRequired();
Logger::instance()->addMessage(tr("qBittorrent was just updated and needs to be restarted for the changes to be effective.")
LogMsg(tr("qBittorrent was just updated and needs to be restarted for the changes to be effective.")
, Log::CRITICAL);
// Delete the executable watcher
delete m_executableWatcher;
@ -1499,7 +1499,7 @@ void MainWindow::activate()
void MainWindow::optionsSaved()
{
Logger::instance()->addMessage(tr("Options saved."));
LogMsg(tr("Options saved."));
loadPreferences();
}