Permalink
Browse files

Making the Close dialog less confusing. Closes #62.

Ideally, everything would be automatically saving. But that's a larger, broader change, and so I'd rather just fix the confusion now, and think about moving to a future iOS-style 'we handle all state for you' way in the future.
  • Loading branch information...
1 parent d0a96a1 commit a9fbd423655624fa67a4f10c004daebe5226d95e @steveklabnik steveklabnik committed Jan 17, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 app/ui/editor/editor.rb
View
@@ -131,9 +131,8 @@ def load script
def save_if_confirmed
if not @save_button.hidden
name = @script[:name] || "unnamed program"
- question = "Do you want to save modifications to \"#{name}\"?\n" +
- "Warning: by pressing \"Cancel\" you will lose any \n" +
- "unsaved modifications."
+ question = "I'm going to save modifications to \"#{name}\". Is that okay?\n" +
+ "Press OK if it is, and cancel if it's not."
if confirm(question)
save @script[:name]
true

0 comments on commit a9fbd42

Please sign in to comment.