fix: error report window not displayed on build failure (#488)

This commit is contained in:
bd_ 2023-10-09 18:43:26 +09:00 committed by GitHub
parent f538bf842f
commit 68bc7ece54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,16 @@ namespace nadena.dev.modular_avatar.core.editor
public void OnDeactivate(ndmf.BuildContext context)
{
toDispose?.Dispose();
toDispose = null;
try
{
toDispose?.Dispose();
toDispose = null;
}
catch (Exception e)
{
ErrorReportUI.OpenErrorReportUI();
throw e;
}
}
}
}