raduprv / Eternal-Lands

http://www.eternal-lands.com
Other
158 stars 57 forks source link

Map Editor: Add exit confirmation #174

Open brunoramoslu opened 2 years ago

brunoramoslu commented 2 years ago

I'm not yet 100% comfortable with the map editor, and it still happens to me a lot that I hit ESC by "mistake" and I forget to save the changes I'm doing losing sometimes a lot of work.

I was wondering if someone that uses the map editor more often would have anything against adding a confirmation window when quitting the map editor (hitting ESC).

I'll leave the issue here for awhile to see if there's any feedback before I try to implement the confirmation window.

I imagine that if the confirmation windows is bothersome for more experienced users we could also add an option to enable disable the exit confirmation window.

gvissers commented 2 years ago

Please do add an option to disable it if you add this, or at least only show the window if there are unsaved changes. There are few things I dislike as much as the incessant questioning of applications if I really, really want to leave.

feeltheburn commented 2 years ago

This is a definite necessity, though as said, only if there are unsaved changes. An option to "Save and Close" may be helpful in that as well.