fix gachalog import crash

This commit is contained in:
DismissedLight
2023-08-19 18:21:24 +08:00
parent cb06949e60
commit 79cf2839e6

View File

@@ -68,12 +68,12 @@ internal sealed partial class ContentDialogFactory : IContentDialogFactory
where TContentDialog : ContentDialog where TContentDialog : ContentDialog
{ {
await taskContext.SwitchToMainThreadAsync(); await taskContext.SwitchToMainThreadAsync();
return serviceProvider.CreateInstance<TContentDialog>(); return serviceProvider.CreateInstance<TContentDialog>(parameters);
} }
public TContentDialog CreateInstance<TContentDialog>(params object[] parameters) public TContentDialog CreateInstance<TContentDialog>(params object[] parameters)
where TContentDialog : ContentDialog where TContentDialog : ContentDialog
{ {
return serviceProvider.CreateInstance<TContentDialog>(); return serviceProvider.CreateInstance<TContentDialog>(parameters);
} }
} }