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 #3317 from albertxing/albertxing/2823
Browse files Browse the repository at this point in the history
Remove welcome project duplicate fix
  • Loading branch information
njx committed Jun 7, 2013
2 parents ee62e35 + 27c37ba commit a603040
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/project/ProjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1550,23 +1550,6 @@ define(function (require, exports, module) {
_prefs = PreferencesManager.getPreferenceStorage(module, defaults);
//TODO: Remove preferences migration code
PreferencesManager.handleClientIdChange(_prefs, "com.adobe.brackets.ProjectManager");

if (!_prefs.getValue("welcomeProjectsFixed")) {
// One-time cleanup of duplicates in the welcome projects list--there used to be a bug where
// we would add lots of duplicate entries here.
var welcomeProjects = _prefs.getValue("welcomeProjects");
if (welcomeProjects) {
var newWelcomeProjects = [];
var i;
for (i = 0; i < welcomeProjects.length; i++) {
if (newWelcomeProjects.indexOf(welcomeProjects[i]) === -1) {
newWelcomeProjects.push(welcomeProjects[i]);
}
}
_prefs.setValue("welcomeProjects", newWelcomeProjects);
_prefs.setValue("welcomeProjectsFixed", true);
}
}

// Event Handlers
$(FileViewController).on("documentSelectionFocusChange", _documentSelectionFocusChange);
Expand Down

0 comments on commit a603040

Please sign in to comment.