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

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