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



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

    application: Shuffle some code around
    
    Having the _initGettingStarted method take care of the isBooks
    condition will make it easier to chain it with the window creation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791518

 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]