[gnome-shell/gbsneto/new-lock-screen-part2: 2/7] unlockDialog: Show details of critical notifications
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 2/7] unlockDialog: Show details of critical notifications
- Date: Mon, 10 Feb 2020 20:20:59 +0000 (UTC)
commit c14161f24b8ef0a998df292add987467fa4f5f98
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 2fc7941042..43290cd617 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]