calendar: Don't restrict section visibility by date
The idea behind hiding the notifications and media section on days other than today was that they represent present activity together with today's events, in contrast to past and future events from other days. After events were moved out of the message list, that behavior is no longer useful: We just guarantee that the left-hand side of the calendar will always be empty when browsing the calendar. Adjust to that by removing the limitation by date. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1282
This commit is contained in:
parent
d36a180852
commit
ff55cf017e
@ -883,10 +883,6 @@ class NotificationSection extends MessageList.MessageListSection {
|
|||||||
});
|
});
|
||||||
super.vfunc_map();
|
super.vfunc_map();
|
||||||
}
|
}
|
||||||
|
|
||||||
_shouldShow() {
|
|
||||||
return !this.empty && isToday(this._date);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var Placeholder = GObject.registerClass(
|
var Placeholder = GObject.registerClass(
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
const { Gio, GObject, Shell, St } = imports.gi;
|
const { Gio, GObject, Shell, St } = imports.gi;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
const Calendar = imports.ui.calendar;
|
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const MessageList = imports.ui.messageList;
|
const MessageList = imports.ui.messageList;
|
||||||
|
|
||||||
@ -252,10 +251,6 @@ class MediaSection extends MessageList.MessageListSection {
|
|||||||
this._onProxyReady.bind(this));
|
this._onProxyReady.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
_shouldShow() {
|
|
||||||
return !this.empty && Calendar.isToday(this._date);
|
|
||||||
}
|
|
||||||
|
|
||||||
get allowed() {
|
get allowed() {
|
||||||
return !Main.sessionMode.isGreeter;
|
return !Main.sessionMode.isGreeter;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user