Skip to content

Conversation

Rmiller5466
Copy link
Contributor

@Rmiller5466 Rmiller5466 commented Oct 6, 2025

Description

I noticed the "DiscardEditorChanges" prompt didn't work at all. Cancel was the only working option. "Save" would just exit the hover without doing anything, and "Discard" would give no feedback at all, also doing nothing. After digging into this, I found that the Prompt was attempting to use the "saveAction" and "confirm" functions attached to the prompt, though this prompt was created without either of these functions being set. The additional "finishClose" method for the editor view isn't the cleanest solution, though wanted to minimize the code duplication across these 3 scenarios.

Additional Information

Introduced by both #5430 and #5329

Checklist

Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See GitHub Help: Closing issues using keywords.

  • I am aware the project is currently in maintenance-only mode. See README
  • I am aware that translations MUST be made through Transifex and that this PR is NOT a translation update
  • I am making a PR against the master branch.
  • I am sure File Browser can be successfully built. See builds and development.

@Rmiller5466 Rmiller5466 changed the title fix: editor discard prompt didn't save nor discard fix: editor discard prompt doesn't save nor discard Oct 6, 2025
@hacdias hacdias merged commit a397e73 into filebrowser:master Oct 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants