Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8341 from adobe/tom/fix-dirs-first
Browse files Browse the repository at this point in the history
Fix #8273: "sortDirectoriesFirst": true in .brackets.json not always working properly
  • Loading branch information
redmunds committed Jul 16, 2014
2 parents 0270081 + 7d8af6e commit 21cf9a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/project/ProjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ define(function (require, exports, module) {
function _generateSortPrefixes() {
var previousDirFirst = _dirFirst;
_dirFirst = PreferencesManager.get("sortDirectoriesFirst");
_sortPrefixDir = _dirFirst ? "0" : "";
_sortPrefixFile = _dirFirst ? "1" : "";
_sortPrefixDir = _dirFirst ? "a" : "";
_sortPrefixFile = _dirFirst ? "b" : "";

return previousDirFirst !== _dirFirst;
}
Expand Down

0 comments on commit 21cf9a9

Please sign in to comment.