From 7d488231b0ff1d878cc8ccabf72c06441bca9783 Mon Sep 17 00:00:00 2001 From: kim jeong yong Date: Tue, 4 Jun 2024 16:55:25 +0900 Subject: [PATCH] =?UTF-8?q?8282=20=EC=9D=B4=EC=8A=88=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/command/commander.js | 12 ++++++++++-- src/util/static.js | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/command/commander.js b/src/command/commander.js index 9f350dea60..87dad4f02c 100644 --- a/src/command/commander.js +++ b/src/command/commander.js @@ -44,6 +44,10 @@ class EntryCommander { command.state.apply(this, args) ) ); + } else if (this.checkIsChange(commandType)) { + if (Entry.creationChangedEvent) { + Entry.creationChangedEvent.notify(); + } } const value = command.do.apply(this, args); this.doEvent.notify(commandType, args); @@ -51,7 +55,7 @@ class EntryCommander { return { value, - isPass: function(isPass, skipCount) { + isPass: function (isPass, skipCount) { this.isPassById(id, isPass, skipCount); }.bind(this), }; @@ -71,7 +75,7 @@ class EntryCommander { } return { value: command.do.apply(this, args), - isPass: function(isPass) { + isPass: function (isPass) { this.isPassById(state.id, isPass); }.bind(this), }; @@ -154,6 +158,10 @@ class EntryCommander { (!Entry.doCommandAll && _.includes(Entry.STATIC.COMMAND_TYPES_NOT_ALWAYS, commandType)) ); } + + checkIsChange(commandType) { + return _.includes(Entry.STATIC.COMMAND_TYPES_CHANGE_CHECK, commandType); + } } Entry.Commander = EntryCommander; diff --git a/src/util/static.js b/src/util/static.js index bc4f6a22c6..0154d20753 100644 --- a/src/util/static.js +++ b/src/util/static.js @@ -188,6 +188,12 @@ Entry.STATIC = { playgroundClickAddHardwareLiteBlockCancel: 1106, }, + COMMAND_TYPES_CHANGE_CHECK: { + variableContainerAddVariable: 803, + variableContainerAddMessage: 807, + variableContainerAddList: 817, + }, + RECORDABLE: { SUPPORT: 1, SKIP: 2,