mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
fix clang formatting
This commit is contained in:
parent
07d6ff18db
commit
81dd948a39
@ -456,14 +456,13 @@ void EpubReaderActivity::renderStatusBar(const int orientedMarginRight, const in
|
||||
if (SETTINGS.showTimeLeftInChapter && SETTINGS.readingSpeedWpm > 0) {
|
||||
const uint32_t wordsLeft = section->getWordsLeftFrom(section->currentPage);
|
||||
if (wordsLeft > 0) {
|
||||
const float minutesLeft = static_cast<float>(wordsLeft) /
|
||||
static_cast<float>(std::max<uint8_t>(1, SETTINGS.readingSpeedWpm));
|
||||
const float minutesLeft =
|
||||
static_cast<float>(wordsLeft) / static_cast<float>(std::max<uint8_t>(1, SETTINGS.readingSpeedWpm));
|
||||
timeLeftText = formatMinutes(minutesLeft);
|
||||
}
|
||||
}
|
||||
const uint8_t bookProgress = epub->calculateProgress(currentSpineIndex, sectionChapterProg);
|
||||
|
||||
|
||||
// Right aligned text for progress counter
|
||||
const std::string progress = std::to_string(section->currentPage + 1) + "/" + std::to_string(section->pageCount) +
|
||||
" " + std::to_string(bookProgress) + "%" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user