Merge remote-tracking branch 'origin/pr/141'

* origin/pr/141:
  Added explanatory tooltip to root resize
This commit is contained in:
Marek Marczykowski-Górecki 2019-01-16 00:32:07 +01:00
commit 9f4e593687
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

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):