LixD icon indicating copy to clipboard operation
LixD copied to clipboard

Ask to save data on Alt+F4 or clicking X in window corner

Open SimonN opened this issue 6 years ago • 2 comments

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.

SimonN avatar Apr 09 '18 08:04 SimonN

Yes, I would also like that feature. Not exactly a bug but a welcome addition regardless.

stavrossk avatar Apr 10 '18 01:04 stavrossk

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

SimonN avatar Mar 15 '21 19:03 SimonN