[gnome-boxes] vm-creator: Don't create the "Just installed" snapshot
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-creator: Don't create the "Just installed" snapshot
- Date: Fri, 11 Feb 2022 12:42:37 +0000 (UTC)
commit 63dfdf44fc2f92cae0e967d881bb84f9d70c3538
Author: Felipe Borges <felipeborges gnome org>
Date: Fri Feb 11 13:29:41 2022 +0100
vm-creator: Don't create the "Just installed" snapshot
This feature is not that wanted to be turned ON by default. Users
can still manually snapshot.
src/vm-creator.vala | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 52831bd8..1f41758b 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -163,7 +163,6 @@ private void on_machine_state_changed (GLib.Object object, GLib.ParamSpec? pspec
App.app.notify_machine_installed (machine);
machine.vm_creator = null;
machine.schedule_autosave ();
- try_create_snapshot.begin (machine);
} else if (!VMConfigurator.is_live_config (machine.domain_config)) {
try {
domain.start (0);
@@ -173,15 +172,6 @@ private void on_machine_state_changed (GLib.Object object, GLib.ParamSpec? pspec
}
}
- private async void try_create_snapshot (LibvirtMachine machine) {
- try {
- // Translators: This is the name of the snapshot taken right after installing a VM.
- yield machine.create_snapshot (_("Just installed "));
- } catch (GLib.Error error) {
- warning ("Failed to create snapshot for domain '%s': %s", machine.name, error.message);
- }
- }
-
protected void set_post_install_config (LibvirtMachine machine) {
debug ("Setting post-installation configuration on '%s'", machine.name);
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]