fix: show confirm emergency stop dialog only when turned on (#1526)

This commit is contained in:
rackrick authored and GitHub committed 2023-08-21 21:45:28 +02:00
1 parent c725fb09f5
commit 871688f3c8
1 file changed
+5 -2
+5 -2
View File
@@ -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() {