fix: remove invalid RenderLock::unlock() call in end-of-book handler
RenderLock is a pure RAII wrapper with no unlock() method. The lock releases naturally when render() returns. Build now succeeds cleanly. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -844,7 +844,6 @@ void EpubReaderActivity::render(Activity::RenderLock&& lock) {
|
|||||||
if (currentSpineIndex == epub->getSpineItemsCount()) {
|
if (currentSpineIndex == epub->getSpineItemsCount()) {
|
||||||
if (!endOfBookMenuOpened) {
|
if (!endOfBookMenuOpened) {
|
||||||
endOfBookMenuOpened = true;
|
endOfBookMenuOpened = true;
|
||||||
lock.unlock();
|
|
||||||
const std::string path = epub->getPath();
|
const std::string path = epub->getPath();
|
||||||
enterNewActivity(new EndOfBookMenuActivity(
|
enterNewActivity(new EndOfBookMenuActivity(
|
||||||
renderer, mappedInput, path, [this](EndOfBookMenuActivity::Action action) {
|
renderer, mappedInput, path, [this](EndOfBookMenuActivity::Action action) {
|
||||||
|
|||||||
Reference in New Issue
Block a user