Skip to content

Commit

Permalink
test quota text label 3
Browse files Browse the repository at this point in the history
  • Loading branch information
liviu-preda-tsystems committed Jul 29, 2024
1 parent 5d1431a commit 992e88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/accountsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ void AccountSettings::slotUpdateQuota(qint64 total, qint64 used)
_ui->quotaProgressBar->setEnabled(true);
// workaround the label only accepting ints (which may be only 32 bit wide)
const auto percent = used / (double)total * 100;
const auto percentInt = qMin(qRound(percent), 100);
// const auto percentInt = qMin(qRound(percent), 100);
_ui->quotaProgressBar->setValue(percent);
const auto usedStr = Utility::octetsToString(used);
const auto totalStr = Utility::octetsToString(total);
Expand Down

0 comments on commit 992e88f

Please sign in to comment.