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:
parent
25b75b706f
commit
31199f9dd1
@ -697,7 +697,7 @@ void EpubReaderActivity::renderStatusBar(const int orientedMarginRight, const in
|
|||||||
|
|
||||||
// Hide percentage when progress bar is shown to reduce clutter
|
// Hide percentage when progress bar is shown to reduce clutter
|
||||||
if (showProgressPercentage) {
|
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);
|
bookProgress);
|
||||||
} else {
|
} else {
|
||||||
snprintf(progressStr, sizeof(progressStr), "%d/%d", section->currentPage + 1, section->pageCount);
|
snprintf(progressStr, sizeof(progressStr), "%d/%d", section->currentPage + 1, section->pageCount);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user