[gnome-shell/uajain/adapt-user-avatar-part2: 82/84] unlockDialog: Show details of critical notifications



commit c5211e779c9491598562bbb7c7955cae27216927
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]