ZhidongYa

Results 1 issues of ZhidongYa

我在一个项目上应用gif控件,一个xml文件 ![image](https://github.com/zlgopen/awtk/assets/93625836/2478220e-0b05-45b2-aa37-eda69f6f7a1c) 然后设计一个按钮,点击它触发一个事件, 就是先打开这个界面,然后又关闭, 如下图程序所示 busying_win = window_open("ui_busying_page"); window_close(busying_win); 但这样会产生一个现象,快速点击会在屏幕留下残影,如下图所示》转圈圈 ![ad58aa63f0773c992c8dca42682bbf8](https://github.com/zlgopen/awtk/assets/93625836/ec5ec032-4fa0-41d1-8650-447095d46fc9) 经分析源码发现可能是异步导致,推测是,关闭界面时没有及时销毁GIF控件,留下残影,然后修改代码如下图所示就没有出现上述情况 busying_win = window_open("ui_busying_page"); widget_destroy(gif), usleep(20000), window_close(busying_win); 现在我的问题是如果不用这个延迟usleep(20000),有什么办法解决 谢谢