fix: remove decimal places from progress % (#507)

Cherry-picked from upstream PR #507
Resolved conflict: kept local progress bar feature while applying decimal fix
This commit is contained in:
cottongin 2026-01-27 07:31:57 -05:00
parent 25b75b706f
commit 31199f9dd1
No known key found for this signature in database
GPG Key ID: 0ECC91FE4655C262

View File

@ -697,7 +697,7 @@ void EpubReaderActivity::renderStatusBar(const int orientedMarginRight, const in
// Hide percentage when progress bar is shown to reduce clutter
if (showProgressPercentage) {
snprintf(progressStr, sizeof(progressStr), "%d/%d %.1f%%", section->currentPage + 1, section->pageCount,
snprintf(progressStr, sizeof(progressStr), "%d/%d %.0f%%", section->currentPage + 1, section->pageCount,
bookProgress);
} else {
snprintf(progressStr, sizeof(progressStr), "%d/%d", section->currentPage + 1, section->pageCount);