[gnome-documents] tracker-controller: perform count query after refresh
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] tracker-controller: perform count query after refresh
- Date: Tue, 13 Mar 2012 01:45:44 +0000 (UTC)
commit ed0abd084d681be2ad639a8f5f60fe5a703bc733
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Mar 12 21:24:09 2012 -0400
tracker-controller: perform count query after refresh
Doing it before queues the next big query of the controller, which is a
performance hit, especially at startup.
src/trackerController.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/trackerController.js b/src/trackerController.js
index 968a184..045122f 100644
--- a/src/trackerController.js
+++ b/src/trackerController.js
@@ -172,6 +172,8 @@ TrackerController.prototype = {
if (exception)
Global.errorHandler.addQueryError(exception);
+ else
+ this._offsetController.resetItemCount();
if (this._queryQueued) {
this._queryQueued = false;
@@ -237,7 +239,6 @@ TrackerController.prototype = {
this._setQueryStatus(true);
Global.documentManager.clear();
- this._offsetController.resetItemCount();
this._performCurrentQuery();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]