Fixed a bug where pressing escape would not properly end scripts in the session state.
This commit is contained in:
parent
9652f070c3
commit
ebfb329da7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue