mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
fix edit password visible
This commit is contained in:
parent
a4e82e55e0
commit
87dc896252
@ -3,6 +3,7 @@
|
||||
* 2020/02/21
|
||||
* 处理jpeg文件扩展名(感谢朝泽提供补丁)。
|
||||
* 修改xml\_to\_ui内存问题(感谢培煌提供补丁)。
|
||||
* 修复 edit 密码可见性的问题(感谢尧燊提供补丁)
|
||||
|
||||
* 2020/02/20
|
||||
* 增加文档《如何集成第三方库》
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user