diff --git a/src/components/panels/Settings/ConfigFilesPanel.vue b/src/components/panels/Settings/ConfigFilesPanel.vue index bd64b462..bdf7fb49 100644 --- a/src/components/panels/Settings/ConfigFilesPanel.vue +++ b/src/components/panels/Settings/ConfigFilesPanel.vue @@ -427,7 +427,9 @@ this.editor.show = false; this.editor.sourcecode = ""; - if (boolRestart) { + if (boolRestart && this.editor.item.filename === "moonraker.conf") { + this.$socket.sendObj('machine.services.restart', { service: "moonraker" }) + } else if (boolRestart) { this.$store.commit('server/addEvent', { message: "FIRMWARE_RESTART", type: 'command' }) this.$socket.sendObj('printer.gcode.script', { script: "FIRMWARE_RESTART" }) }