We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c369df commit 1ac028aCopy full SHA for 1ac028a
qubesmanager/restore.py
@@ -257,12 +257,12 @@ def thread_finished(self):
257
self.progress_bar.setValue(100)
258
259
if self.thread.msg:
260
- QtWidgets.QMessageBox.warning(
261
- self,
262
- self.tr("Restore qubes"),
263
- self.tr(self.thread.msg))
264
-
265
- if self.thread.msg:
+ messagebox = (
+ QtWidgets.QMessageBox.information
+ if "successful" in self.thread.msg
+ else QtWidgets.QMessageBox.warning
+ )
+ messagebox(self, self.tr("Restore qubes"), self.tr(self.thread.msg))
266
self.append_output(self.thread.msg)
267
268
if self.showFileDialog.isChecked():
0 commit comments