code: def accept(self):
          
          AutosaveErrorDialog.show_errors = not self.dismiss_box.isChecked()
          return QDialog.accept(self)
docs: Update `show_errors` and hide dialog box.
  
          Overrides method of `QDialogBox`.