diff --git a/app/scripts/controllers/menu.js b/app/scripts/controllers/menu.js index 8f7a7cd14..a3dbeac9b 100644 --- a/app/scripts/controllers/menu.js +++ b/app/scripts/controllers/menu.js @@ -59,7 +59,7 @@ angular $scope.workingdir = ""; $scope.snapshotdir = ""; - $scope.recentProjects = profile.get('recentProjects') || []; + $scope.recentProjects = $scope.profile.get('recentProjects'); let zeroProject = true; // New project without changes let resultAlert = null; diff --git a/app/scripts/services/profile.js b/app/scripts/services/profile.js index 6b13db2ed..fc1ee4dda 100644 --- a/app/scripts/services/profile.js +++ b/app/scripts/services/profile.js @@ -31,7 +31,8 @@ angular.module('icestudio') 'loggingEnabled': false, 'loggingFile':'', 'displayVersionInfoWindow': 'yes', - 'pythonEnv':{'python':'','pip':''} + 'pythonEnv':{'python':'','pip':''}, + 'recentProjects': [], }; //-- Property added to the MACs