LixD
LixD copied to clipboard
Ask to save data on Alt+F4 or clicking X in window corner
Lix 0.9.14
Observed: Lix exits immediately on Alt+F4 and discards unsaved editor data. Clicking the X in the corner of the Window discards unsaved editor data, too.
Expected: Editor should probably ask to save when there is unsaved data. Editor should close immediately, along with the app, once all data is saved.
Be thoughtful with additional Alt+F4 or X clicks during the save dialog.
Yes, I would also like that feature. Not exactly a bug but a welcome addition regardless.
Implementation idea: Catch ALLEGRO_EVENT_DISPLAY_CLOSE
from display's event source where it's handled (has nothing to do with editor), then somehow pass the information to the editor.
https://www.allegro.cc/manual/5/allegro_event