Added an ActivityLock for locking into an activity state
This commit is contained in:
@@ -21,7 +21,12 @@ public partial class CreateWalletViewModel(IServiceProvider provider,
|
|||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string password;
|
private string password;
|
||||||
|
|
||||||
public async Task<bool> Confirm() =>
|
public async Task<bool> Confirm()
|
||||||
await Mediator.Handle<CreateEventArgs<Wallet<(string, string)>>,
|
{
|
||||||
|
using (await new ActivityLock(this))
|
||||||
|
{
|
||||||
|
return await Mediator.Handle<CreateEventArgs<Wallet<(string, string)>>,
|
||||||
bool>(Create.As(new Wallet<(string, string)>((Name, Password))));
|
bool>(Create.As(new Wallet<(string, string)>((Name, Password))));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user