修改UI关闭通知延迟0.1秒发送

This commit is contained in:
shenjianxing 2025-03-14 17:10:45 +08:00
parent ad227f0582
commit 7f106d7246

View File

@ -92,7 +92,11 @@ namespace QFramework.Example
protected override void OnHide()
{
mData = null;
StringEventSystem.Global.Send(this.GetType().Name + "Hide");
// 防止后面紧接着的Action接收不到此消息 延迟0.1秒发送
ActionKit.Delay(0.1f, () =>
{
StringEventSystem.Global.Send(this.GetType().Name + "Hide");
}).StartGlobal();
}
protected override void OnClose()