Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Aug 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: inverted if condition removed
Signed-off-by: Patrick Stainbrook <patrick@hohestadt.de>
rackrick committed Aug 21, 2023

Unverified

This user has not yet uploaded their public signing key.
commit 37371dea935e3692cf4ce9fe058e811fbc7bac09
6 changes: 3 additions & 3 deletions src/components/TheTopbar.vue
Original file line number Diff line number Diff line change
@@ -267,12 +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() {