[gnome-documents/wip/rishi/init-getting-started: 1/9] application: Insert the getting started PDF only when showing a window



commit 961c846dc2dbe13e283e3c711f24ff5f8ff68c27
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Dec 7 20:11:39 2017 +0100

    application: Insert the getting started PDF only when showing a window
    
    The startup is shared between the application and the search provider.
    There is no need to initialize the getting started PDF for the search
    provider, since it is only useful when the user runs the application.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791518

 src/application.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 3de397a..70dbfca 100644
--- a/src/application.js
+++ b/src/application.js
@@ -417,9 +417,6 @@ var Application = new Lang.Class({
               state: settings.get_value('night-mode') },
         ];
 
-        if (!this.isBooks)
-            this._initGettingStarted();
-
         Utils.populateActionGroup(this, actionEntries, 'app');
     },
 
@@ -427,6 +424,9 @@ var Application = new Lang.Class({
         if (this._mainWindow)
             return;
 
+        if (!this.isBooks)
+            this._initGettingStarted();
+
         notificationManager = new Notifications.NotificationManager();
         this._mainWindow = new MainWindow.MainWindow(this);
         this._mainWindow.connect('destroy', Lang.bind(this, this._onWindowDestroy));


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