mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Don't hide member variables when storing current speeds
PR #20847. Closes #20843.
This commit is contained in:
parent
00ca209ab9
commit
fb796ec595
1 changed files with 2 additions and 2 deletions
|
@ -1510,8 +1510,8 @@ void MainWindow::loadSessionStats()
|
||||||
{
|
{
|
||||||
const auto *btSession = BitTorrent::Session::instance();
|
const auto *btSession = BitTorrent::Session::instance();
|
||||||
const BitTorrent::SessionStatus &status = btSession->status();
|
const BitTorrent::SessionStatus &status = btSession->status();
|
||||||
const QString m_downloadRate = Utils::Misc::friendlyUnit(status.payloadDownloadRate, true);
|
m_downloadRate = Utils::Misc::friendlyUnit(status.payloadDownloadRate, true);
|
||||||
const QString m_uploadRate = Utils::Misc::friendlyUnit(status.payloadUploadRate, true);
|
m_uploadRate = Utils::Misc::friendlyUnit(status.payloadUploadRate, true);
|
||||||
|
|
||||||
// update global information
|
// update global information
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue