Skip to content

Conversation

@JammingBen
Copy link
Contributor

This could happen when undoing a delete via the notification and then clicking ctrl/cmd + z.

Fixes what has been reported in PR #1580.

@JammingBen JammingBen self-assigned this Nov 11, 2025
Copilot AI review requested due to automatic review settings November 11, 2025 09:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the undo delete action could be triggered multiple times for the same file - once via the notification button and again via the Ctrl/Cmd+Z keyboard shortcut, potentially causing unintended behavior.

Key changes:

  • Move keyActionId declaration outside the conditional block to make it accessible in the callback scope
  • Add cleanup logic to remove the keyboard action when the undo action is triggered via the notification button

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JammingBen JammingBen merged commit 9c45471 into main Nov 11, 2025
28 checks passed
@JammingBen JammingBen deleted the fix/undo-delete-twice branch November 11, 2025 09:53
@JammingBen
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
stable-4.2

Questions ?

Please refer to the Backport tool documentation

openclouders pushed a commit that referenced this pull request Nov 11, 2025
fix: prevent undo delete multiple times for same file
@openclouders openclouders mentioned this pull request Nov 11, 2025
1 task
@openclouders openclouders mentioned this pull request Dec 15, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants