mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix gachalog import crash
This commit is contained in:
@@ -68,12 +68,12 @@ internal sealed partial class ContentDialogFactory : IContentDialogFactory
|
||||
where TContentDialog : ContentDialog
|
||||
{
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
return serviceProvider.CreateInstance<TContentDialog>();
|
||||
return serviceProvider.CreateInstance<TContentDialog>(parameters);
|
||||
}
|
||||
|
||||
public TContentDialog CreateInstance<TContentDialog>(params object[] parameters)
|
||||
where TContentDialog : ContentDialog
|
||||
{
|
||||
return serviceProvider.CreateInstance<TContentDialog>();
|
||||
return serviceProvider.CreateInstance<TContentDialog>(parameters);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user