Finer granularity of popup methods

This commit is contained in:
jpirnay
2026-04-25 10:32:49 +02:00
parent 920a9e035c
commit be6b7fa0c6
2 changed files with 28 additions and 6 deletions
@@ -1236,7 +1236,10 @@ void EpubReaderActivity::render(RenderLock&& lock) {
Rect popupRect{};
const auto progressFn = [this, &popupRect](int progress) {
if (popupRect.width == 0) {
// Drawing the popup already does a full refresh, which serves as the
// 0% indication; no need to follow it with a redundant fillPopupProgress.
popupRect = GUI.drawPopup(renderer, tr(STR_INDEXING));
return;
}
GUI.fillPopupProgress(renderer, popupRect, progress);
};