[gnome-boxes/handle-live-guests: 7/8] vm-creator: Stop asking for installer source for live guests




commit 8d06fd5036f69b8acf8114b5de8aa919212b16c5
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Feb 8 13:02:41 2021 +0100

    vm-creator: Stop asking for installer source for live guests
    
    Lets give users the autonomy of removing source installers and
    leaving their guests in whatever state it is. In the future we
    should indicate which guests are installed and which are not.
    
    Fixes #647

 src/vm-creator.vala | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 1139595e..b0407e97 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -98,28 +98,6 @@ protected virtual async void continue_installation (LibvirtMachine machine) {
             return;
         }
 
-        if (!FileUtils.test (install_media.device_file, FileTest.EXISTS)) {
-            Notification.OKFunc add_installer_media = () => {
-                var file_chooser = new Gtk.FileChooserNative (_("Select a device or ISO file"),
-                                                              machine.window,
-                                                              Gtk.FileChooserAction.OPEN,
-                                                              _("Select"), _("Cancel"));
-                if (file_chooser.run () == Gtk.ResponseType.ACCEPT) {
-                    install_media.device_file = file_chooser.get_filename ();
-                } else {
-                    install_media.device_file = null;
-                }
-            };
-
-            var message = _("Source installer media '%s' no longer exists").printf 
(install_media.device_file);
-            machine.window.notificationbar.display_for_action (message,
-                                                               _("Add installer media"),
-                                                               (owned) add_installer_media,
-                                                               null);
-            if (install_media.device_file == null)
-                return;
-        }
-
         install_media.prepare_to_continue_installation (name);
 
         state_changed_id = machine.notify["state"].connect (on_machine_state_changed);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]