Added info to Restore Backup widget about dom0 restore

Added a label that makes it a bit more clear where the dom0 restore
backup data went.

references QubesOS/qubes-issues#3975
This commit is contained in:
Marta Marczykowska-Górecka 2019-01-16 21:11:43 +01:00
parent 60f62ff7cf
commit 0347eb6b1a
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B
2 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,8 @@ class RestoreVMsWindow(ui_restoredlg.Ui_Restore, QtGui.QWizard):
self.setupUi(self)
self.dom0_restored_label.setVisible(False)
self.select_vms_widget = multiselectwidget.MultiSelectWidget(self)
self.select_vms_layout.insertWidget(1, self.select_vms_widget)
@ -185,6 +187,9 @@ class RestoreVMsWindow(ui_restoredlg.Ui_Restore, QtGui.QWizard):
vmname = self.select_vms_widget.available_list.item(i).text()
del self.vms_to_restore[str(vmname)]
if 'dom0' in self.vms_to_restore.keys():
self.dom0_restored_label.setVisible(True)
self.vms_to_restore = self.backup_restore.restore_info_verify(
self.vms_to_restore)

View File

@ -265,6 +265,13 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="dom0_restored_label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;WARNING: restored dom0 files are located in ~/backup-restore-&amp;lt;timestamp&amp;gt; directory&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>