zlgopen / awtk-mvvm

Model-View-ViewModel for AWTK
GNU Lesser General Public License v2.1
88 stars 27 forks source link

在tk_thread线程中通过条件判断自动弹出popup信息提示框,点击提示框的【确认】键无法关闭提示框 #39

Closed zhaoyangxia1990 closed 2 years ago

zhaoyangxia1990 commented 2 years ago

提示框通过navigator_to_ex打开,提示框的关闭通过{nothing, CloseWindow=true}命令关闭。而且第一次启动应用是可以关闭提示框,之后再弹出提示框无法关闭

xianjimli commented 2 years ago

非GUI线程不能操作GUI。

zhaoyangxia1990 commented 2 years ago

操作mvvm的导航器navigator也不行吗?

xianjimli commented 2 years ago

不行,用tk_run_in_ui_thread或idle_queue进行串行化。