serge-rgb / milton

An infinite-canvas paint program
GNU General Public License v3.0
1.53k stars 133 forks source link

Fix #140 add Cancel option to new canvas dialog #141

Closed gonutz closed 5 years ago

gonutz commented 5 years ago

When creating a new canvas the old progress might be lost. The user is queried with a dialog to save their progress. A new option "cancel" is now available which lets you continue working on the current canvas instead of creating a new one.

Also, cancelling the save dialog in case you answer "yes" to saving your progress will also get you back to the current canvas instead of creating a new one.

IMPORTANT NOTE: I did not test the Linux version with the GTK dialog. I have no Linux dev environment currently set up so I created that all by example of the other dialog and with the help of online documentation. Still someone has to test it before merging this PR.

gonutz commented 5 years ago

Sure, done :-)

Actually this looks better now, no need for constants and the comment is now gone. The code is back to self-explanatory again :-)

gonutz commented 5 years ago

I am closing this one, I created the same thing again on its own branch...