mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: snapshots: Warn of saved state on creation
Add a confirmation dialog when creating a new snapshot if there is saved memory state so the user is aware that memory state will not be part of the snapshot. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Michael Weiser <michael.weiser@gmx.de> Suggested-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
a8c25450bd
commit
d62ca8220b
@ -633,6 +633,17 @@ class vmmSnapshotPage(vmmGObjectUI):
|
||||
self._snapshot_new = vmmSnapshotNew(self.vm)
|
||||
self._snapshot_new.connect("snapshot-created",
|
||||
self._snapshot_created_cb)
|
||||
if self.vm.has_managed_save():
|
||||
result = self.err.ok_cancel(
|
||||
_("Saved memory state will not be part of the snapshot"),
|
||||
_("The domain is currently saved. Due to technical "
|
||||
"limitations that saved memory state will not become part "
|
||||
"of the snapshot. Running it later will be the same as "
|
||||
"having forced the system off mid-flight. It is "
|
||||
"recommended to snapshot either the running or shut down "
|
||||
"system instead."))
|
||||
if not result:
|
||||
return
|
||||
self._snapshot_new.show(self.topwin)
|
||||
|
||||
def _on_refresh_clicked(self, ignore):
|
||||
|
Loading…
Reference in New Issue
Block a user