mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 16:17:38 +03:00
clang
This commit is contained in:
parent
4ced80fe39
commit
f5a7a56aac
@ -143,8 +143,7 @@ void ReaderActivity::onGoToTxtReader(std::unique_ptr<Txt> txt) {
|
|||||||
currentBookPath = txtPath;
|
currentBookPath = txtPath;
|
||||||
exitActivity();
|
exitActivity();
|
||||||
enterNewActivity(new TxtReaderActivity(
|
enterNewActivity(new TxtReaderActivity(
|
||||||
renderer, mappedInput, std::move(txt), [this, txtPath] { goToLibrary(txtPath); },
|
renderer, mappedInput, std::move(txt), [this, txtPath] { goToLibrary(txtPath); }, [this] { onGoBack(); }));
|
||||||
[this] { onGoBack(); }));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReaderActivity::onEnter() {
|
void ReaderActivity::onEnter() {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ class Txt;
|
|||||||
|
|
||||||
class ReaderActivity final : public ActivityWithSubactivity {
|
class ReaderActivity final : public ActivityWithSubactivity {
|
||||||
std::string initialBookPath;
|
std::string initialBookPath;
|
||||||
std::string currentBookPath; // Track current book path for navigation
|
std::string currentBookPath; // Track current book path for navigation
|
||||||
MyLibraryActivity::Tab libraryTab; // Track which tab to return to
|
MyLibraryActivity::Tab libraryTab; // Track which tab to return to
|
||||||
const std::function<void()> onGoBack;
|
const std::function<void()> onGoBack;
|
||||||
const std::function<void(const std::string&, MyLibraryActivity::Tab)> onGoToLibrary;
|
const std::function<void(const std::string&, MyLibraryActivity::Tab)> onGoToLibrary;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user