[gnome-documents/wip/rishi/init-getting-started] trackerController: ...
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/init-getting-started] trackerController: ...
- Date: Fri, 8 Dec 2017 19:48:41 +0000 (UTC)
commit 671a7c27d41dbec9b264426e4524f9dda89f9e6b
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 8 20:47:17 2017 +0100
trackerController: ...
src/trackerController.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/trackerController.js b/src/trackerController.js
index 05b7e89..ecdb0dd 100644
--- a/src/trackerController.js
+++ b/src/trackerController.js
@@ -234,7 +234,8 @@ const TrackerController = new Lang.Class({
},
_refreshInternal: function(flags) {
- this._isStarted = true;
+ if (!this._isStarted)
+ return;
if (flags & RefreshFlags.RESET_OFFSET)
this._offsetController.resetOffset();
@@ -290,6 +291,7 @@ const TrackerController = new Lang.Class({
if (this._isStarted)
return;
+ this._isStarted = true;
this._refreshInternal(RefreshFlags.NONE);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]