fix edit password visible

This commit is contained in:
xianjimli 2020-02-21 10:53:28 +08:00
parent a4e82e55e0
commit 87dc896252
2 changed files with 2 additions and 5 deletions

View File

@ -3,6 +3,7 @@
* 2020/02/21
* 处理jpeg文件扩展名感谢朝泽提供补丁
* 修改xml\_to\_ui内存问题感谢培煌提供补丁
* 修复 edit 密码可见性的问题(感谢尧燊提供补丁)
* 2020/02/20
* 增加文档《如何集成第三方库》

View File

@ -884,11 +884,6 @@ ret_t edit_set_prop(widget_t* widget, const char* name, const value_t* v) {
input_type = (input_type_t)value_int(v);
}
edit->input_type = input_type;
if (input_type == INPUT_PASSWORD) {
edit_set_password_visible(widget, FALSE);
}
return RET_OK;
} else if (tk_str_eq(name, WIDGET_PROP_READONLY)) {
edit->readonly = value_bool(v);
@ -1296,6 +1291,7 @@ widget_t* edit_create_ex(widget_t* parent, const widget_vtable_t* vt, xy_t x, xy
ENSURE(edit->model != NULL);
widget_set_text(widget, L"");
edit_set_password_visible(widget, FALSE);
return widget;
}