bugfix: fix order in console from preset
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
28aa03a55f
commit
0d2f9bd8d8
1 file changed
+4
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user