[gnome-shell/gbsneto/new-lock-screen-part2: 1/6] unlockDialog: Show details of critical notifications



commit 78d88f63c44ccfc740b923abadba54e5ec22abc1
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/872

 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]