Add missed braces
This commit is contained in:
@@ -916,7 +916,7 @@ void TxtReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
requestUpdate();
|
requestUpdate();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BA::BTN_PAGE_FORWARD_10:
|
case BA::BTN_PAGE_FORWARD_10: {
|
||||||
const int prevPage = currentPage;
|
const int prevPage = currentPage;
|
||||||
currentPage += 10;
|
currentPage += 10;
|
||||||
clampPage();
|
clampPage();
|
||||||
@@ -925,16 +925,17 @@ void TxtReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
}
|
}
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
break;
|
break;
|
||||||
case BA::BTN_PAGE_BACK_10:
|
}
|
||||||
|
case BA::BTN_PAGE_BACK_10: {
|
||||||
const int prevPage = currentPage;
|
const int prevPage = currentPage;
|
||||||
currentPage -= 10;
|
currentPage -= 10;
|
||||||
clampPage();
|
clampPage();
|
||||||
if (currentPage != prevPage) {
|
if (currentPage != prevPage) {
|
||||||
globalReadingSessionTracker().onPageTurn();
|
globalReadingSessionTracker().onPageTurn();
|
||||||
}
|
}
|
||||||
|
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case BA::BTN_STAR_PAGE:
|
case BA::BTN_STAR_PAGE:
|
||||||
bookmarkStore.toggle(0, static_cast<uint16_t>(currentPage));
|
bookmarkStore.toggle(0, static_cast<uint16_t>(currentPage));
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
|
|||||||
@@ -534,7 +534,7 @@ void XtcReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
requestUpdate();
|
requestUpdate();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BA::BTN_PAGE_FORWARD_10:
|
case BA::BTN_PAGE_FORWARD_10: {
|
||||||
const uint32_t prevPage = currentPage;
|
const uint32_t prevPage = currentPage;
|
||||||
currentPage = (currentPage + 10 < pageCount) ? currentPage + 10 : pageCount - 1;
|
currentPage = (currentPage + 10 < pageCount) ? currentPage + 10 : pageCount - 1;
|
||||||
if (currentPage != prevPage) {
|
if (currentPage != prevPage) {
|
||||||
@@ -542,7 +542,8 @@ void XtcReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
}
|
}
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
break;
|
break;
|
||||||
case BA::BTN_PAGE_BACK_10:
|
}
|
||||||
|
case BA::BTN_PAGE_BACK_10: {
|
||||||
const uint32_t prevPage = currentPage;
|
const uint32_t prevPage = currentPage;
|
||||||
currentPage = (currentPage >= 10) ? currentPage - 10 : 0;
|
currentPage = (currentPage >= 10) ? currentPage - 10 : 0;
|
||||||
if (currentPage != prevPage) {
|
if (currentPage != prevPage) {
|
||||||
@@ -550,6 +551,7 @@ void XtcReaderActivity::onButtonAction(const CrossPointSettings::BUTTON_ACTION a
|
|||||||
}
|
}
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case BA::BTN_NEXT_SECTION:
|
case BA::BTN_NEXT_SECTION:
|
||||||
if (xtc->hasChapters()) {
|
if (xtc->hasChapters()) {
|
||||||
const auto& chapters = xtc->getChapters();
|
const auto& chapters = xtc->getChapters();
|
||||||
|
|||||||
Reference in New Issue
Block a user