[gnome-shell/uajain/adapt-user-avatar-part2] unlockDialog: Show details of critical notifications
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2] unlockDialog: Show details of critical notifications
- Date: Mon, 10 Feb 2020 18:38:11 +0000 (UTC)
commit a0b194e8adfd2cf1f35b906e08e6b66f60812d8c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 10 15:05:35 2020 -0300
unlockDialog: Show details of critical notifications
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
js/ui/unlockDialog.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 44bbeed853..f94c5867e5 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -142,7 +142,8 @@ var NotificationsBox = GObject.registerClass({
_shouldShowDetails(source) {
return source.policy.detailsInLockScreen ||
- source.narrowestPrivacyScope === MessageTray.PrivacyScope.SYSTEM;
+ source.narrowestPrivacyScope === MessageTray.PrivacyScope.SYSTEM ||
+ source.notifications.some(n => n.urgency === MessageTray.Urgency.CRITICAL);
}
_updateSourceBoxStyle(source, obj, box) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]