[gnome-documents/wip/rishi/init-getting-started: 1/5] application: Insert the getting started PDF only when showing a window
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/init-getting-started: 1/5] application: Insert the getting started PDF only when showing a window
- Date: Fri, 8 Dec 2017 17:11:28 +0000 (UTC)
commit 5fe20990d196df2cc7daae66e80173211e60c0b6
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 meant to be shown when the user launches
the application.
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]