[gnome-contacts/wip/mjog/show-contact-activate] Fix show-contact action not launching app if closed



commit 3809c94e0157d62dfce6264471442ca0273408b9
Author: Michael Gratton <mike vee net>
Date:   Sun Sep 8 08:51:24 2019 +1000

    Fix show-contact action not launching app if closed
    
    Somewhat embarrasingly, I only tested the show-contact action when
    Contacts was runing. It needs to chain to activate so that the app
    actually starts up if invoked when not running.
    
    Fixes GNOME/geary#556

 src/contacts-app.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 180d83c..3ad4630 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -389,9 +389,9 @@ public class Contacts.App : Gtk.Application {
   }
 
   private void on_show_contact(SimpleAction action, Variant? param) {
+    activate();
+
     var individual = param as string;
-    if (window != null)
-      window.present ();
     if (individual != null)
       show_individual.begin (individual);
   }


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