code: def show_error_dialog(message: str, details: str=None):
          
          # TODO: i18n
          message_box = QMessageBox(
              QMessageBox.Critical,
              "Error",
              message,
              QMessageBox.Ok,
              None
          )
          if details:
              message_box.setDetailedText(details)
          message_box.exec_()
docs: Convenience method for showing an error dialog.