Fixed a bug where pressing escape would not properly end scripts in the session state.

This commit is contained in:
Scott Erickson 2014-07-13 13:11:45 -07:00
parent 9652f070c3
commit ebfb329da7

View file

@ -320,6 +320,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
if ((noteGroup.script?.skippable) is false) and not options.force if ((noteGroup.script?.skippable) is false) and not options.force
@noteGroupQueue = @noteGroupQueue[i..] @noteGroupQueue = @noteGroupQueue[i..]
@run() @run()
@notifyScriptStateChanged()
return return
@processNoteGroup(noteGroup) @processNoteGroup(noteGroup)
@ -331,6 +332,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
@noteGroupQueue = [] @noteGroupQueue = []
@resetThings() @resetThings()
@notifyScriptStateChanged()
onNoteGroupTimeout: (noteGroup) -> onNoteGroupTimeout: (noteGroup) ->
return unless noteGroup is @currentNoteGroup return unless noteGroup is @currentNoteGroup