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

Commit

Permalink
Remove welcome project duplicate fix
Browse files Browse the repository at this point in the history
Clean up welcomeProjectsFixed code - Issue #2823
  • Loading branch information
albertxing committed Apr 2, 2013
1 parent 16d2151 commit 27c37ba
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 @@ -1345,23 +1345,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 27c37ba

Please sign in to comment.