File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
internal/compiler/widgets/qt Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -91,19 +91,16 @@ export component LineEdit {
91
91
}
92
92
}
93
93
94
- if root .input-type == InputType.password: LineEditPasswordIcon {
94
+ if root .input-type == InputType.password && ! root .text.is-empty && root .has-focus : LineEditPasswordIcon {
95
95
width : self .source.width * 1px ;
96
96
show-password-image : @image-url ("_visibility.svg" ) ;
97
97
hide-password-image : @image-url ("_visibility_off.svg" ) ;
98
98
colorize : inner.text-color;
99
- height : inner.min-height;
100
- image-fit : preserve;
99
+ show-password : inner.input-type != InputType.password;
101
100
show-password-changed (show) => {
102
101
inner.input-type = show ? InputType.text : root .input-type;
103
102
inner.focus ();
104
103
}
105
104
}
106
-
107
-
108
105
}
109
106
}
You can’t perform that action at this time.
0 commit comments