Skip to content

Commit

Permalink
Ensure that resetting the configuration is actually triggered when pr…
Browse files Browse the repository at this point in the history
…essed

CURA-9334
  • Loading branch information
nallath committed May 31, 2022
1 parent 2422a40 commit de6d7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UM/ConfigurationErrorMessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def _actionTriggered(self, _, action_id):
result = QMessageBox.question(None, i18n_catalog.i18nc("@title:window", "Reset to factory"),
i18n_catalog.i18nc("@label",
"Reset will remove all your current printers and profiles! Are you sure you want to reset?"))
if result == QMessageBox.Yes:
if result == QMessageBox.StandardButton.Yes:
Resources.factoryReset()
sys.exit(1)
self._application.closeApplication()

__instance = None # type: ConfigurationErrorMessage

Expand Down

0 comments on commit de6d7ac

Please sign in to comment.