Fixed issue where creating a new Wallet doesn't Initialize it

This commit is contained in:
TheXamlGuy
2024-06-15 19:38:57 +01:00
parent d42ad098fd
commit 294a83505b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ public class WalletActivatedHandler(IWalletHostCollection Wallets,
{
if (host.Services.GetRequiredService<IServiceFactory>() is IServiceFactory serviceFactory)
{
if (serviceFactory.Create<WalletNavigationViewModel>(descriptor.Name, false)
if (serviceFactory.Create<WalletNavigationViewModel>(args => args.Initialize(),
descriptor.Name, false)
is WalletNavigationViewModel viewModel)
{
publisher.Publish(Insert.As<IMainNavigationViewModel>(index, viewModel),