[gnome-contacts/wip/mjog/show-contact-activate] Fix show-contact action not launching app if closed
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/mjog/show-contact-activate] Fix show-contact action not launching app if closed
- Date: Sat, 7 Sep 2019 22:54:05 +0000 (UTC)
commit a16507faa05b1a4a6693f63ce4b44830bee4a28d
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#387
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]