mirror of
https://github.com/atom/atom.git
synced 2026-02-18 10:31:54 -05:00
Use view class of entry instead of native call
This commit is contained in:
@@ -208,7 +208,7 @@ class TreeView extends ScrollView
|
||||
entry = @selectedEntry()
|
||||
return unless entry
|
||||
oldPath = entry.getPath()
|
||||
if fs.isFile(oldPath)
|
||||
if entry instanceof FileView
|
||||
prompt = "Enter the new path for the file."
|
||||
else
|
||||
prompt = "Enter the new path for the directory."
|
||||
|
||||
Reference in New Issue
Block a user