More bug fixes

This commit is contained in:
TheXamlGuy
2024-07-10 22:18:32 +01:00
parent bd51de3245
commit 62f8c8b084
17 changed files with 57 additions and 84 deletions
+8 -3
View File
@@ -4,7 +4,7 @@ using Toolkit.Foundation;
namespace Wallet;
public partial class MainViewModel :
ObservableCollection<IMainNavigationViewModel>,
ObservableCollection<INavigationViewModel>,
INotificationHandler<SelectionEventArgs<IWalletNavigationViewModel>>
{
[ObservableProperty]
@@ -27,9 +27,14 @@ public partial class MainViewModel :
public Task Handle(SelectionEventArgs<IWalletNavigationViewModel> args)
{
if (args.Sender is not null)
if (args.Sender is WalletNavigationViewModel wallet)
{
SelectedItem = null;
Reset(args => args.SetSource(wallet), false);
SelectedItem = wallet;
}
else
{
Clear(false);
}
return Task.CompletedTask;