Skip to content

Commit

Permalink
when stop clicked fix
Browse files Browse the repository at this point in the history
- Fixes it being triggered by a green flag click
- Modifies the VM function
  • Loading branch information
LilyMakesThings authored Jun 27, 2023
1 parent 2cbe898 commit 1e370e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/Lily/MoreEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
runtime.on('AFTER_EXECUTE', () => {
runtime.shouldExecuteStopClicked = true;
});
const originalGreenFlag = vm.greenFlag;
vm.greenFlag = function() {
runtime.shouldExecuteStopClicked = false;
originalGreenFlag.call(this);
};

runtime.on('STAGE_SIZE_CHANGED', () => {
runtime.startHats('lmsMoreEvents_whenRuntimeOptionChanged', {
Expand Down

0 comments on commit 1e370e2

Please sign in to comment.