[gnome-documents/wip/rishi/init-getting-started: 4/6] application: Shuffle some code around



commit 833d4a58613bfa5d665480be9ab0ca2f3fbbd381
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 8 17:29:56 2017 +0100

    application: Shuffle some code around

 src/application.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 7a18387..09588a2 100644
--- a/src/application.js
+++ b/src/application.js
@@ -127,6 +127,9 @@ var Application = new Lang.Class({
     },
 
     _initGettingStarted: function() {
+        if (this.isBooks)
+            return;
+
         let manager = TrackerControl.MinerManager.new_full(false);
 
         let languages = GLib.get_language_names();
@@ -433,8 +436,7 @@ var Application = new Lang.Class({
             return;
         }
 
-        if (!this.isBooks)
-            this._initGettingStarted();
+        this._initGettingStarted();
 
         notificationManager = new Notifications.NotificationManager();
         this._mainWindow = new MainWindow.MainWindow(this);


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