Skip to content

Commit 7b5139f

Browse files
committed
fix(UIManager): 修复打开失败时静默返回而非抛出异常的问题
移除失败事件处理器中的 return GetUIForm() 语句, 确保异常能正确向上传播而不是返回无效的 UIForm。
1 parent 64bdf73 commit 7b5139f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Runtime/UIManager.Open.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ private IUIForm InternalOpenUIForm(int serialId, string uiFormAssetPath, string
230230
{
231231
OpenUIFormFailureEventArgs openUIFormFailureEventArgs = OpenUIFormFailureEventArgs.Create(serialId, uiFormAssetName, pauseCoveredUIForm, exception.ToString(), userData);
232232
m_OpenUIFormFailureEventHandler(this, openUIFormFailureEventArgs);
233-
return GetUIForm(openUIFormFailureEventArgs.SerialId);
234233
}
235234

236235
throw;

0 commit comments

Comments
 (0)