Skip to content

Commit

Permalink
improve combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Jan 13, 2025
1 parent 7dec37e commit 55c8f8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 最新动态

2025/01/13
* 修改xml中combo_box只设置options属性,打开ui后切换语言,控件的文本没同步翻译的问题(感谢朝泽提供补丁)

2025/01/11
* improve for qnx
2025/01/08
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/combo_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static ret_t combo_box_on_event(widget_t* widget, event_t* e) {
}

if (combo_box_get_curr_text_size(widget) == 0 && widget->tr_text == NULL) {
combo_box_sync_index_to_value(widget, 0, TRUE);
combo_box_sync_index_to_value(widget, 0, FALSE);
}
break;
}
Expand Down

0 comments on commit 55c8f8d

Please sign in to comment.