Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
jpirnay
2026-04-27 18:45:16 +02:00
co-authored by Copilot
parent aed297b2b1
commit 066ec3d56b
6 changed files with 30 additions and 17 deletions
+3 -4
View File
@@ -56,9 +56,8 @@ struct KOReaderSyncSessionState {
// completion. Without this, AUTO_PUSH would bounce back into the reader the user just left.
bool exitToHomeAfterSync = false;
// Set by RecentBooks / FileBrowser long-press to ask the reader to perform an AUTO_PULL
// before rendering its first page. Consumed once on reader entry. Stored separately from
// `intent` because the long-press path bypasses `launchKOReaderSync`'s reader-state capture.
bool autoPullOnOpen = false;
// before rendering its first page. Stored by EPUB path so the flag cannot leak across books.
std::string autoPullEpubPath;
void clear() {
active = false;
@@ -76,7 +75,7 @@ struct KOReaderSyncSessionState {
resultParagraphIndex = 0;
resultHasParagraphIndex = false;
exitToHomeAfterSync = false;
autoPullOnOpen = false;
autoPullEpubPath.clear();
}
};