serge-rgb / milton

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

Have Cancel option in New Milton Canvas event #140

Closed gonutz closed 5 years ago

gonutz commented 5 years ago

Hitting Ctrl+N I get to decide whether I want to save the current state or not. Additionally there should be an option to cancel the operation, in case I actually want to keep working on the current canvas. The user should have full control at all times.

We could leave it as is and just have the user save the canvas, load it again, then delete the temporary file that was created in that process. This however is unconfortable and not how such dialogs typically work :-)

gonutz commented 5 years ago

Also, if I say yes to save the file, then I decide to not save the file and hit Cancel on the file selection dialog, this should intuitively be evaluated as a "I want to continue working on the file" which is the default behavior for how Windows handles things. This means that it should be possible to Cancel the dialog that asks me if I want to save my progress before a the canvas is cleared and then it should also be possible to cancel the save dialog and still continue working on the old canvas.

If the user wants to create a new canvas and not save the old one, they say No to the save dialog. If the user wants to create a new canvas and save the old one, they say Yes and select a valid path.

The proposed behavior should be most intuitive for Windows users.