Don't suggest saving empty files on closing them

Bug #1043475 reported by Sergey "Shnatsel" Davidoff
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Medium
Mario Guerriero

Bug Description

If I erase everything I typed in Scratch without saving the file anywhere, and then close the tab, Scratch still prompts if the file should be saved. I often press Ctrl+A and Backspace to get rid of something and indicate I don't want it saved; the prompt is rather intrusive in that case.

Since it makes no sense to save empty files (unless explicitly requested with the Save button), Scratch should not prompt if they should be saved on closing a tab with no text in it.

This should be like that only in save-as-you-type mode; in case of manual saving that's a valid modification that still should be manually saved or discarded.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Got a +1 on this from Dan.

description: updated
Changed in scratch:
status: New → Confirmed
Changed in scratch:
importance: Undecided → Medium
milestone: none → 1.2
Changed in scratch:
assignee: nobody → Mario Guerriero (mefrio-g)
status: Confirmed → Fix Committed
Changed in scratch:
status: Fix Committed → Fix Released
Changed in scratch:
status: Fix Released → Fix Committed
Cody Garver (codygarver)
Changed in scratch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.