fix: ManageBook menu auto-selecting Book Info on long-press release
RecentBooksActivity was passing initialSkipRelease=false when opening BookManageMenuActivity via long-press Confirm. The button release event was consumed by the menu as a selection of the first item (Book Info). Pass true to match HomeActivity's existing behavior. Made-with: Cursor
This commit is contained in:
@@ -86,7 +86,7 @@ void RecentBooksActivity::openManageMenu(const std::string& bookPath) {
|
|||||||
const bool isArchived = BookManager::isArchived(bookPath);
|
const bool isArchived = BookManager::isArchived(bookPath);
|
||||||
const std::string capturedPath = bookPath;
|
const std::string capturedPath = bookPath;
|
||||||
startActivityForResult(
|
startActivityForResult(
|
||||||
std::make_unique<BookManageMenuActivity>(renderer, mappedInput, capturedPath, isArchived, false),
|
std::make_unique<BookManageMenuActivity>(renderer, mappedInput, capturedPath, isArchived, true),
|
||||||
[this, capturedPath](const ActivityResult& result) {
|
[this, capturedPath](const ActivityResult& result) {
|
||||||
if (result.isCancelled) {
|
if (result.isCancelled) {
|
||||||
requestUpdate();
|
requestUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user