Skip to content

Refuse to close compose panel while editor is open - #146

Open
The-Compiler wants to merge 1 commit into
akissinger:masterfrom
The-Compiler:refuse-closing-compose
Open

The-Compiler wants to merge 1 commit into
akissinger:masterfrom
The-Compiler:refuse-closing-compose

Conversation

@The-Compiler

Copy link
Copy Markdown
Collaborator

Previously, the panel would close immediately and only afterwards show a message pointing to the saved temp file. Now, before_close() refuses the close outright while the external editor thread is still running, avoiding the need to manually recover the lost mail contents.

I was always annoyed by the amount of steps needed after accidentally closing the compose panel, so I think this is a much better solution. Co-authored by Claude Code, but reviewed and hand-edited by me.

Previously the panel would close immediately and only afterwards show
a message pointing to the saved temp file. Now before_close() refuses
the close outright while the external editor thread is still running,
avoiding the need to manually recover the lost mail contents.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant