merge main

This commit is contained in:
Peter Cottle 2023-06-24 10:33:32 -06:00
commit b30bcb0395

View file

@ -264,6 +264,7 @@ var Level = Sandbox.extend({
var toIssue = this.level.solutionCommand;
var issueFunc = function() {
this.isShowingSolution = true;
this.wasResetAfterSolved = true;
Main.getEventBaton().trigger(
'commandSubmitted',
toIssue
@ -281,6 +282,7 @@ var Level = Sandbox.extend({
return;
}
if(!LevelStore.isLevelSolved(this.level.id)){
// allow them for force the solution
var confirmDefer = Q.defer();
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
@ -300,6 +302,10 @@ var Level = Sandbox.extend({
command.finishWith(deferred);
}, confirmView.getAnimationTime());
});
} else {
issueFunc();
command.finishWith(deferred);
}
},
toggleObjective: function() {