diff --git a/src/components/TheTopbar.vue b/src/components/TheTopbar.vue index 4c9f6256..f06bc306 100644 --- a/src/components/TheTopbar.vue +++ b/src/components/TheTopbar.vue @@ -267,9 +267,12 @@ export default class TheTopbar extends Mixins(BaseMixin) { btnEmergencyStop() { const confirmOnEmergencyStop = this.$store.state.gui.uiSettings.confirmOnEmergencyStop - if (!confirmOnEmergencyStop) this.emergencyStop() + if (confirmOnEmergencyStop) { + this.showEmergencyStopDialog = true + return + } - this.showEmergencyStopDialog = true + this.emergencyStop() } emergencyStop() {