Set visibility property always to the entry widget

When the password widget has autocomplete activated, the entry is a combobox.

Closes #13166
This commit is contained in:
Cédric Krier committed 2024-04-05 18:09:19 +02:00
1 parent b41e204d83
commit bf7f66afe6
1 file changed
+5 -1
@@ -172,4 +172,8 @@ class Password(Char):
self.visibility_checkbox, expand=False, fill=True, padding=0)
def toggle_visibility(self, button):
self.entry.props.visibility = not self.entry.props.visibility
if self.autocomplete:
entry = self.entry.get_child()
else:
entry = self.entry
entry.props.visibility = not self.entry.props.visibility