[gnome-shell/155-move-functionality-from-evolution-alarm-notify-to-gnome-shell-calendar-server-2] Make sure the events are flushed from memory when changing time range
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/155-move-functionality-from-evolution-alarm-notify-to-gnome-shell-calendar-server-2] Make sure the events are flushed from memory when changing time range
- Date: Thu, 24 May 2018 16:16:07 +0000 (UTC)
commit 239abc270b82da021aa97294f779deb494e64645
Author: Milan Crha <mcrha redhat com>
Date: Thu May 24 18:17:27 2018 +0200
Make sure the events are flushed from memory when changing time range
js/ui/calendar.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 199a47222..9b1d345a1 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -347,7 +347,11 @@ var DBusEventSource = new Lang.Class({
if (!this._initialized)
return;
- if (this._curRequestBegin && this._curRequestEnd){
+ if (this._curRequestBegin && this._curRequestEnd) {
+ if (forceReload) {
+ this._events.clear();
+ this.emit('changed');
+ }
this._dbusProxy.SetTimeRangeRemote(this._curRequestBegin.getTime() / 1000,
this._curRequestEnd.getTime() / 1000,
forceReload,
@@ -371,7 +375,7 @@ var DBusEventSource = new Lang.Class({
this._lastRequestEnd = end;
this._curRequestBegin = begin;
this._curRequestEnd = end;
- this._loadEvents(false);
+ this._loadEvents(true);
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]