Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Leave case unmodified in file manager warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlubner committed Apr 17, 2019
1 parent 0697f25 commit 319c7fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tree-view.coffee
Expand Up @@ -560,13 +560,13 @@ class TreeView
return unless filePath = @selectedEntry()?.getPath()

unless shell.showItemInFolder(filePath)
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName().toLowerCase()}")
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName()}")

showCurrentFileInFileManager: ->
return unless filePath = atom.workspace.getCenter().getActiveTextEditor()?.getPath()

unless shell.showItemInFolder(filePath)
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName().toLowerCase()}")
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName()}")

getFileManagerName: ->
switch process.platform
Expand Down

0 comments on commit 319c7fc

Please sign in to comment.