CompEvol / BeastFX

GUIs for BEAST using Java FX to make things more pretty.
GNU Lesser General Public License v2.1
4 stars 1 forks source link

Allow "cancel" to stop beauti from closing. #37

Closed tgvaughan closed 1 year ago

tgvaughan commented 1 year ago

Attempting to close BEAUti with data loaded results in the following modal:

Screenshot 2023-01-06 at 12 15 28

Selecting "Cancel" should abort the closing procedure, but currently both "Cancel" and "No" seem to behave identically. The problem is that BEAUti's handler for the close event allows the event to bubble up to a built-in handler which terminates the process, even when "Cancel" is selected.

This PR simply adds a line to BEAUti's handler which prevents the propagation, yielding the expected behaviour.