[gnome-boxes] vm-importer: Go to display-view when the machine starts



commit 95dd40c154ec371ac2ac1a2151e8704913c5ef02
Author: Felipe Borges <felipeborges gnome org>
Date:   Sat Dec 25 15:19:52 2021 +0100

    vm-importer: Go to display-view when the machine starts
    
    After the VM is imported (InstalledMedia) we should switch to the
    display-view as the machine starts.
    This is the same behavior for installer-medias.
    
    Merry Christmas!

 src/vm-importer.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/vm-importer.vala b/src/vm-importer.vala
index 66bffa74..e152ea16 100644
--- a/src/vm-importer.vala
+++ b/src/vm-importer.vala
@@ -40,6 +40,7 @@ protected virtual async void post_import_setup (LibvirtMachine machine) {
         if (start_after_import) {
             try {
                 machine.domain.start (0);
+                App.app.main_window.select_item (machine);
             } catch (GLib.Error error) {
                 warning ("Failed to start domain '%s': %s", machine.domain.get_name (), error.message);
             }


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