⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

actions: Execute possible callbacks on Y/N prompts#3885

Open
JoeKar wants to merge 1 commit intomicro-editor:masterfrom
JoeKar:fix/yn-prompt-callbacks
Open

actions: Execute possible callbacks on Y/N prompts#3885
JoeKar wants to merge 1 commit intomicro-editor:masterfrom
JoeKar:fix/yn-prompt-callbacks

Conversation

@JoeKar
Copy link
Member

@JoeKar JoeKar commented Oct 11, 2025

This will execute the callback also in case the answer was "no", like we did with #3719.

Fixes #3878

@JoeKar JoeKar force-pushed the fix/yn-prompt-callbacks branch from f934a4f to da58578 Compare October 21, 2025 17:42
@JoeKar JoeKar force-pushed the fix/yn-prompt-callbacks branch from da58578 to a90b1c9 Compare October 22, 2025 17:26
...and keep backward compatibility with `SaveAsCB()` where the callback shall
be performed only in case the save was successful.
@JoeKar JoeKar force-pushed the fix/yn-prompt-callbacks branch from a90b1c9 to 5de12c4 Compare October 23, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When autosave is on, it’s impossible to quit a readonly file without saving

2 participants