Windows should be able to cancel a close operation #24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Windows should have an TryClose event (or something) that fires when the user attempts to close the window. If the handler returns true, the window will be closed. If the handler returns false, the window will be left open. If there are multiple handlers, the window is only closed when all return true.
This can be used to display some sort of "Unsaved changes" warning to the user. The Close behavior should bypass this mechanism so it can be effectively used within such a dialog if the user wishes to close the window anyways.