mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve window_manager_back_to
This commit is contained in:
parent
6efe9f8213
commit
edd1539f57
@ -2,6 +2,7 @@
|
||||
|
||||
2024/01/09
|
||||
* 完善utils.py,兼容Python2.7(感谢雨欣提供补丁)
|
||||
* 修复存在多个模态对话时,window\_manager\_back\_to接口无法正常返回主页窗口的问题(感谢雨欣提供补丁)
|
||||
|
||||
2024/01/08
|
||||
* 完善编译脚本,修改打印信息(感谢智明提供补丁)
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user