calendar: update current day highlight on day change
https://bugzilla.gnome.org/show_bug.cgi?id=742492
This commit is contained in:
parent
e3a8a284a4
commit
60b3d43ea7
@ -601,6 +601,7 @@ const Calendar = new Lang.Class({
|
|||||||
beginDate.setHours(12);
|
beginDate.setHours(12);
|
||||||
|
|
||||||
this._calendarBegin = new Date(beginDate);
|
this._calendarBegin = new Date(beginDate);
|
||||||
|
this._markedAsToday = now;
|
||||||
|
|
||||||
let year = beginDate.getYear();
|
let year = beginDate.getYear();
|
||||||
|
|
||||||
@ -692,7 +693,7 @@ const Calendar = new Lang.Class({
|
|||||||
else
|
else
|
||||||
this._monthLabel.text = this._selectedDate.toLocaleFormat(this._headerFormat);
|
this._monthLabel.text = this._selectedDate.toLocaleFormat(this._headerFormat);
|
||||||
|
|
||||||
if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin))
|
if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin) || !_sameDay(now, this._markedAsToday))
|
||||||
this._rebuildCalendar();
|
this._rebuildCalendar();
|
||||||
|
|
||||||
this._buttons.forEach(Lang.bind(this, function(button) {
|
this._buttons.forEach(Lang.bind(this, function(button) {
|
||||||
|
Loading…
Reference in New Issue
Block a user