Blame SOURCES/0005-shellEntry-Only-mask-text-in-password-entries.patch

a3db19
From 7a264550c5f3a98b1786b1a75cff01cde1d084eb Mon Sep 17 00:00:00 2001
a3db19
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
a3db19
Date: Thu, 29 Jul 2021 17:17:43 +0200
a3db19
Subject: [PATCH 5/5] shellEntry: Only mask text in password entries
a3db19
a3db19
When "Show Text" is locked down, we not only remove the corresponding
a3db19
menu item, but also make sure the password is masked.
a3db19
a3db19
Except that the current code is too eager, and masks the text in
a3db19
any entries.
a3db19
---
a3db19
 js/ui/shellEntry.js | 4 +++-
a3db19
 1 file changed, 3 insertions(+), 1 deletion(-)
a3db19
a3db19
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
a3db19
index c45e4545a..64b389050 100644
a3db19
--- a/js/ui/shellEntry.js
a3db19
+++ b/js/ui/shellEntry.js
a3db19
@@ -55,11 +55,13 @@ var EntryMenu = class extends PopupMenu.PopupMenu {
a3db19
                 this._passwordItem.destroy();
a3db19
                 this._passwordItem = null;
a3db19
             }
a3db19
-            this._entry.clutter_text.set_password_char('\u25cf');
a3db19
         } else if (this.isPassword && !passwordDisabled) {
a3db19
             if (!this._passwordItem)
a3db19
                 this._makePasswordItem();
a3db19
         }
a3db19
+
a3db19
+        if (this.isPassword && passwordDisabled)
a3db19
+            this._entry.clutter_text.set_password_char('\u25cf');
a3db19
     }
a3db19
 
a3db19
     get isPassword() {
a3db19
-- 
a3db19
2.31.1
a3db19