Don't hide member variables when storing current speeds

PR #20847.
Closes #20843.
This commit is contained in:
Vladimir Golovnev 2024-05-16 08:17:51 +03:00 committed by GitHub
parent 00ca209ab9
commit fb796ec595
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1510,8 +1510,8 @@ void MainWindow::loadSessionStats()
{
const auto *btSession = BitTorrent::Session::instance();
const BitTorrent::SessionStatus &status = btSession->status();
const QString m_downloadRate = Utils::Misc::friendlyUnit(status.payloadDownloadRate, true);
const QString m_uploadRate = Utils::Misc::friendlyUnit(status.payloadUploadRate, true);
m_downloadRate = Utils::Misc::friendlyUnit(status.payloadDownloadRate, true);
m_uploadRate = Utils::Misc::friendlyUnit(status.payloadUploadRate, true);
// update global information
#ifdef Q_OS_MACOS