Tweak message when prompting for a directory

This commit is contained in:
Kevin Sawicki
2013-01-11 13:29:54 -08:00
parent 497bc258a8
commit 0e982d35b6

View File

@@ -208,9 +208,13 @@ class TreeView extends ScrollView
entry = @selectedEntry()
return unless entry
oldPath = entry.getPath()
if fs.isFile(oldPath)
prompt = "Enter the new path for the file."
else
prompt = "Enter the new path for the directory."
dialog = new Dialog
prompt: "Enter the new path for the file."
prompt: prompt
path: @rootView.project.relativize(oldPath)
select: true
iconClass: 'move'