improve window_manager_back_to

This commit is contained in:
lixianjing 2024-01-09 17:06:07 +08:00
parent 6efe9f8213
commit edd1539f57
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@
2024/01/09
* 完善utils.py兼容Python2.7(感谢雨欣提供补丁)
* 修复存在多个模态对话时window\_manager\_back\_to接口无法正常返回主页窗口的问题(感谢雨欣提供补丁)
2024/01/08
* 完善编译脚本,修改打印信息(感谢智明提供补丁)

View File

@ -100,6 +100,10 @@ static ret_t window_manager_back_to_win_sync(widget_t* widget, widget_t* target)
WIDGET_FOR_EACH_CHILD_END()
top = wins.size > 0 ? WIDGET(darray_pop(&wins)) : NULL;
if (widget_is_dialog(top) && dialog_is_modal(top)) {
dialog_quit(top, DIALOG_QUIT_NONE);
top = NULL;
}
for (k = 0; k < wins.size; k++) {
widget_t* iter = WIDGET(wins.elms[k]);
if (widget_is_dialog(iter) && dialog_is_modal(iter)) {