[geary/wip/426-hidden-broken] Ensure running with --hidden doesn't open a window



commit 0ede9187d2b78ee102569aca7c2d32b9942c89e6
Author: Michael Gratton <mike vee net>
Date:   Fri May 10 18:33:33 2019 +1000

    Ensure running with --hidden doesn't open a window

 src/client/application/geary-application.vala | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index bd413d3e..3f34059b 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -753,6 +753,8 @@ public class GearyApplication : Gtk.Application {
             Geary.Logging.log_to(null);
         }
 
+        bool activated = false;
+
         // Logging flags
         if (options.contains(OPTION_LOG_NETWORK))
             Geary.Logging.enable_flags(Geary.Logging.Flag.NETWORK);
@@ -780,9 +782,11 @@ public class GearyApplication : Gtk.Application {
             // Update the autostart file so that it stops using the
             // --hidden option.
             this.update_autostart_file.begin();
+            // Then manually start the controller
+            this.create_controller.begin();
+            activated = true;
         }
 
-        bool activated = false;
         if (options.contains(GLib.OPTION_REMAINING)) {
             string[] args = options.lookup_value(
                 GLib.OPTION_REMAINING,


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