[gnome-shell/gbsneto/new-lock-screen-part2: 33/38] 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: 33/38] unlockDialog: Show details of critical notifications
- Date: Mon, 10 Feb 2020 22:15:17 +0000 (UTC)
commit 66b257e6c35f6cf644bbe5e72e4fecb4d81bab12
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 ec08acd1cf..f8e5f05909 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]