Bug fixes

This commit is contained in:
TheXamlGuy
2024-07-05 21:57:01 +01:00
parent e91c03d4de
commit bc5023c8ac
28 changed files with 208 additions and 106 deletions
+10
View File
@@ -1,4 +1,5 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Toolkit.Foundation;
namespace Wallet;
@@ -77,6 +78,15 @@ public partial class WalletNavigationViewModel :
return Task.CompletedTask;
}
[RelayCommand]
private async Task Lock()
{
if (await Mediator.Handle<CloseEventArgs<Wallet>, bool>(Close.As<Wallet>()))
{
IsOpened = false;
}
}
public Task Handle(ActivatedEventArgs<Wallet> args)
{
IsActivated = true;