MCPcopy Create free account
hub / github.com/YACReader/yacreader / setMangaModeImpl

Method setMangaModeImpl

YACReader/viewer.cpp:1487–1503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485}
1486
1487void Viewer::setMangaModeImpl(bool manga, bool persistSettings)
1488{
1489 if (doubleMangaPage == manga) {
1490 return;
1491 }
1492
1493 doubleMangaPage = manga;
1494
1495 if (persistSettings) {
1496 Configuration &config = Configuration::getConfiguration();
1497 config.setDoubleMangaPage(doubleMangaPage);
1498 goToFlow->updateConfig(config.getSettings());
1499 }
1500
1501 render->setManga(manga);
1502 goToFlow->setFlowRightToLeft(doubleMangaPage);
1503}
1504
1505void Viewer::setMangaWithoutStoringSetting(bool manga)
1506{

Callers

nothing calls this directly

Calls 5

setDoubleMangaPageMethod · 0.80
getSettingsMethod · 0.80
setMangaMethod · 0.80
updateConfigMethod · 0.45
setFlowRightToLeftMethod · 0.45

Tested by

no test coverage detected