fix: show confirm emergency stop dialog only when turned on (#1526)
This commit is contained in:
1 parent
c725fb09f5
commit
871688f3c8
1 file changed
+5
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user