[geary/wip/775956-dbus-activation: 11/11] Minor code updates



commit 7b953febb6dcecc0d243dcfe33b1c6f31ae2e470
Author: Michael Gratton <mike vee net>
Date:   Fri Apr 12 20:42:05 2019 +1000

    Minor code updates

 src/client/application/geary-application.vala | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index 1bb95729..f91edd5a 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -190,11 +190,21 @@ public class GearyApplication : Gtk.Application {
     }
 
     /**
-     * The user's desktop-wide settings for the application.
+     * The user's desktop settings for the application.
+     *
+     * This will be null until {@link startup} has been called, and
+     * hence will only ever become non-null for the primary instance.
      */
-    public Configuration config { get; private set; }
+    public Configuration? config {
+        get; private set; default = null;
+    }
 
-    /** Manages the autostart desktop file. */
+    /**
+     * Manages the autostart desktop file.
+     *
+     * This will be null until {@link startup} has been called, and
+     * hence will only ever become non-null for the primary instance.
+     */
     public Application.StartupManager? autostart {
         get; private set; default = null;
     }


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