Added explanatory tooltip to root resize

If system storage cannot be resized (due to belonging to an AppVM), the
system storage max field is grayed out without explanation; now it
will have a tooltip.

fixes QubesOS/qubes-issues#4617
This commit is contained in:
Marta Marczykowska-Górecka 2018-12-28 17:13:39 +01:00
parent 9727a0938b
commit 470390d789
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -452,6 +452,10 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.root_resize.setValue(self.root_img_size)
self.root_resize.setMinimum(self.root_img_size)
self.root_resize.setEnabled(self.vm.volumes['root'].save_on_stop)
if not self.root_resize.isEnabled():
self.root_resize.setToolTip(
self.tr("To change system storage size, change properties "
"of the underlying template."))
self.root_resize_label.setEnabled(self.root_resize.isEnabled())
def __apply_basic_tab__(self):