[gnome-boxes/nuke-old-wizard: 1/3] app: Let the new VM Assistant handle opening files



commit f245c65c252be2dc4520247bcff9604c69e1e957
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Feb 26 16:02:07 2020 +0100

    app: Let the new VM Assistant handle opening files
    
    When double-clicking on a file in a file browser or when running
    from the command-line.

 src/app.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 19656de5..0986dc4e 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -240,7 +240,7 @@ public override int command_line (GLib.ApplicationCommandLine cmdline) {
                     if (is_uri)
                         main_window.wizard_window.wizard.open_with_uri (arg);
                     else
-                        main_window.wizard_window.wizard.open_with_uri (file.get_uri ());
+                        main_window.show_vm_assistant (file.get_path ());
                 } else if (is_uri)
                     main_window.wizard_window.wizard.open_with_uri (arg);
                 else
@@ -268,7 +268,7 @@ public override void open (File[] _files, string hint) {
         File[] files = _files;
         call_when_ready (() => {
             foreach (File file in files) {
-                main_window.wizard_window.wizard.open_with_uri (file.get_uri ());
+                main_window.show_vm_assistant (file.get_path ());
             }
         });
     }


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