Skip to content

Commit

Permalink
Making the Close dialog less confusing. Closes hacketyhack#62.
Browse files Browse the repository at this point in the history
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
steveklabnik committed Jan 17, 2011
1 parent d0a96a1 commit a9fbd42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/ui/editor/editor.rb
Expand Up @@ -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
Expand Down

0 comments on commit a9fbd42

Please sign in to comment.