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

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