mirror of
https://github.com/atom/atom.git
synced 2026-02-18 10:31:54 -05:00
Tweak message when prompting for a directory
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user