Skip to content

Commit

Permalink
improve dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 10, 2024
1 parent a4942e1 commit ba105c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

2024/12/10
* 修复scroll_bar_d不指定max时控件内的dragger不显示的问题(感谢雨欣提供补丁)
* 修复 dialog 对话框在退出过程中还会被传递事件的问题 (感谢高源提供补丁)

2024/12/08
* 增加wstr\_modify\_wchar(感谢智明提供补丁)
Expand Down
4 changes: 4 additions & 0 deletions src/base/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ ret_t dialog_quit(widget_t* widget, uint32_t code) {
dialog->quit_code = (dialog_quit_code_t)code;
l->quit_num += dialog->quit_num;
main_loop_quit(l);
if (widget->parent != NULL) {
widget->parent->target = NULL;
widget->parent->key_target = NULL;
}
#endif /*WITHOUT_MODAL_DIALOG*/

return RET_OK;
Expand Down

0 comments on commit ba105c0

Please sign in to comment.