Repository navigation
Reset canceled state in GenerateCitationKeyAction on execute - #17787
Conversation
PR Summary by QodoRestore citation-key toolbar action after canceling an overwrite
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by QodoResolved findings 1.
|
doraem-on
left a comment
There was a problem hiding this comment.
looks good , awaiting second review
…olbar-cancel-17748
…olbar-cancel-17748
|
Hi @doraem-on / maintainers, the changes have been approved by @doraem-on. Could a maintainer please update the label from The |
…olbar-cancel-17748
…olbar-cancel-17748
…olbar-cancel-17748
…olbar-cancel-17748
|
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin port-17787-to-black-forest
git worktree add --checkout .worktree/port-17787-to-black-forest port-17787-to-black-forest
cd .worktree/port-17787-to-black-forest
git reset --hard HEAD^
git cherry-pick -x 01dff979299e1c9fc36ace8c33290f2f6ef3dbba |
Summary
When clicking the "Generate citation keys" toolbar button and choosing "Cancel" on the overwrite confirmation dialog,
isCanceledwas left astrue. SinceMainToolBarretains the sameGenerateCitationKeyActioninstance for its lifetime, any later clicks on the toolbar button were ignored becauseisCanceledremainedtrue.Reset
isCanceled = false;at the start ofexecute()so each click starts with a clean state.jabref-contrib-policy:4.2:reviewed:ok
Steps to test
Testing video
2026-11-11.20-17-47.mp4
Related issues and pull requests
Closes #17748
AI usage
Used Antigravity CLI for locating the action instantiation and unit test scaffolding. Verified manually in running JabRef and added test in
GenerateCitationKeyActionTest.Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)