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:
parent
9727a0938b
commit
470390d789
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user