Remove superfluous prefix str

This commit is contained in:
jpirnay
2026-04-03 11:51:48 +02:00
parent 97d4400b55
commit 1563e034d3
+2 -1
View File
@@ -532,7 +532,8 @@ void SleepActivity::renderBitmapSleepScreen(const Bitmap& bitmap, const BookOver
maxChapterWidth > 0 maxChapterWidth > 0
? renderer.truncatedText(UI_10_FONT_ID, overlayInfo.chapterName.c_str(), maxChapterWidth) ? renderer.truncatedText(UI_10_FONT_ID, overlayInfo.chapterName.c_str(), maxChapterWidth)
: ""; : "";
progressStr = prefix + truncatedChapter + overlayInfo.progressSuffix; // progressStr = prefix + truncatedChapter + overlayInfo.progressSuffix;
progressStr = truncatedChapter + overlayInfo.progressSuffix;
} else { } else {
progressStr = renderer.truncatedText(UI_10_FONT_ID, overlayInfo.progressText.c_str(), availableWidth); progressStr = renderer.truncatedText(UI_10_FONT_ID, overlayInfo.progressText.c_str(), availableWidth);
} }