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



commit a81f669b051912619643e1a992f97e6ecb8e3801
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 f61af3e9..64070f60 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]