[gnome-documents/wip/rishi/init-getting-started: 6/7] trackerController: Don't submit queries until started
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/init-getting-started: 6/7] trackerController: Don't submit queries until started
- Date: Tue, 12 Dec 2017 15:45:01 +0000 (UTC)
commit 44e0f523a28e8c074766fa7e45154a5d01f2d5c7
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Dec 12 16:35:22 2017 +0100
trackerController: Don't submit queries until started
https://bugzilla.gnome.org/show_bug.cgi?id=791518
src/trackerController.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/trackerController.js b/src/trackerController.js
index 05b7e89..55f1343 100644
--- a/src/trackerController.js
+++ b/src/trackerController.js
@@ -283,6 +283,10 @@ const TrackerController = new Lang.Class({
return;
this.sortBy = sortBy;
+
+ if (!this._isStarted)
+ return;
+
this._refreshInternal(RefreshFlags.RESET_OFFSET);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]