Skip to content

Commit

Permalink
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/scripts/controllers/menu.js
Original file line number Diff line number Diff line change
@@ -380,7 +380,9 @@ angular.module('icestudio')
boards.selectBoard(board.name);
graph.resetIOChoices();
alertify.success(gettextCatalog.getString('Board {{name}} selected', { name: utils.bold(board.info.label) }));
$rootScope.$apply();
if(!$rootScope.$$phase) {
$rootScope.$apply();
}
});
}
else {
4 changes: 3 additions & 1 deletion app/scripts/services/common.service.js
Original file line number Diff line number Diff line change
@@ -57,7 +57,9 @@ angular.module('icestudio')
else {
alertify.notify(gettextCatalog.getString('Wrong project format: {{name}}', { name: utils.bold(name) }), 'error', 30);
}
$rootScope.$apply();
if(!$rootScope.$$phase) {
$rootScope.$apply();
}
};

this.saveProject = function(filepath) {
4 changes: 3 additions & 1 deletion app/scripts/services/graph.service.js
Original file line number Diff line number Diff line change
@@ -810,7 +810,9 @@ angular.module('icestudio')
addBasicConstantBlock(blockInstance, disabled);
}
else {
addGenericBlock(blockInstance, deps[blockInstance.type]);
if (deps && deps[blockInstance.type]) {
addGenericBlock(blockInstance, deps[blockInstance.type]);
}
}
}

0 comments on commit 72df855

Please sign in to comment.