snapshots: Tweak warning before run
Make it clear that VM configuration changes will also be dropped if reverting to a snapshot while the VM is offline. Suggested-by: Jorge Fábregas <jorge.fabregas@gmail.com>
This commit is contained in:
parent
af216ebaf6
commit
9d743ab4c8
|
@ -553,10 +553,15 @@ class vmmSnapshotPage(vmmGObjectUI):
|
|||
|
||||
def _on_start_clicked(self, ignore):
|
||||
snap = self._get_selected_snapshot()
|
||||
result = self.err.yes_no(_("Are you sure you want to run "
|
||||
"snapshot '%s'? All disk changes since "
|
||||
"the last snapshot was created will be "
|
||||
"discarded.") % snap.get_name())
|
||||
msg = _("Are you sure you want to run snapshot '%s'? "
|
||||
"All %s changes since the last snapshot was created will be "
|
||||
"discarded.")
|
||||
if self.vm.is_active():
|
||||
msg = msg % (snap.get_name(), _("disk"))
|
||||
else:
|
||||
msg = msg % (snap.get_name(), _("disk and configuration"))
|
||||
|
||||
result = self.err.yes_no(msg)
|
||||
if not result:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue