bugfix: fix order in console from preset

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-02-08 22:25:23 +01:00
1 parent 28aa03a55f
commit 0d2f9bd8d8
1 file changed
+4 -2
+4 -2
View File
@@ -324,8 +324,10 @@
}
if (preset.gcode !== "") {
this.$store.commit('server/addEvent', { message: preset.gcode, type: 'command' })
this.$socket.sendObj('printer.gcode.script', { script: preset.gcode })
setTimeout(() => {
this.$store.commit('server/addEvent', { message: preset.gcode, type: 'command' })
this.$socket.sendObj('printer.gcode.script', { script: preset.gcode })
}, 100)
}
},
cooldown() {