Commit 56e1d0a4 authored by Debarshi Ray's avatar Debarshi Ray

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
parent 8b76decc
......@@ -407,9 +407,6 @@ var Application = new Lang.Class({
state: settings.get_value('night-mode') },
];
if (!this.isBooks)
this._initGettingStarted();
Utils.populateActionGroup(this, actionEntries, 'app');
},
......@@ -417,6 +414,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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment