vault unlocking WIP
This commit is contained in:
@@ -6,8 +6,5 @@ namespace Toolkit.Avalonia;
|
||||
public class AvaloniaDispatcher :
|
||||
IDispatcher
|
||||
{
|
||||
public async Task InvokeAsync(Action action)
|
||||
{
|
||||
await Dispatcher.UIThread.InvokeAsync(action);
|
||||
}
|
||||
public async Task Invoke(Action action) => await Dispatcher.UIThread.InvokeAsync(action);
|
||||
}
|
||||
@@ -79,7 +79,7 @@ public class ContentDialogHandler(IDispatcher dispatcher) :
|
||||
async void DeactivateHandler(object? sender, EventArgs args)
|
||||
{
|
||||
deactivatable.DeactivateHandler -= DeactivateHandler;
|
||||
await dispatcher.InvokeAsync(contentDialog.Hide);
|
||||
await dispatcher.Invoke(contentDialog.Hide);
|
||||
}
|
||||
|
||||
deactivatable.DeactivateHandler += DeactivateHandler;
|
||||
|
||||
Reference in New Issue
Block a user