fix setCmd mobx.action call

This commit is contained in:
sawka
2022-08-19 17:14:25 -07:00
parent 739114045c
commit f7796169f6
+3 -3
View File
@@ -68,7 +68,7 @@ class Cmd {
setCmd(cmd : CmdDataType) {
mobx.action(() => {
this.data.set(cmd);
});
})();
}
getStatus() : string {
@@ -980,7 +980,7 @@ class Model {
if (lineMsg.line != null) {
this.addLineCmd(lineMsg.line, lineMsg.cmd, interactive);
}
if (lineMsg.line == null && lineMsg.cmd != null) {
else if (lineMsg.line == null && lineMsg.cmd != null) {
this.updateCmd(lineMsg.cmd);
}
}
@@ -996,7 +996,7 @@ class Model {
let cmdline : CmdLineUpdateType = update.cmdline;
this.inputModel.updateCmdLine(cmdline);
}
// console.log("run-update>", interactive, update);
// console.log("run-update>", Date.now(), interactive, update);
}
getActiveSession() : Session {