MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / goToLibrary

Method goToLibrary

src/activities/reader/ReaderActivity.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void ReaderActivity::goToLibrary(const std::string& fromBookPath) {
85 // If coming from a book, start in that book's folder; otherwise start from root
86 auto initialPath = fromBookPath.empty() ? "/" : FsHelpers::extractFolderPath(fromBookPath);
87 activityManager.goToFileBrowser(std::move(initialPath));
88}
89
90void ReaderActivity::onGoToEpubReader(std::unique_ptr<Epub> epub) {
91 const auto epubPath = epub->getPath();

Callers

nothing calls this directly

Calls 3

extractFolderPathFunction · 0.85
goToFileBrowserMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected