leerform recipe subsystem created
This commit is contained in:
@@ -115,9 +115,10 @@ public partial class RecipeSelectionDialog : global::Avalonia.Controls.Window
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnCreateNew_Click(object? sender, global::Avalonia.Interactivity.RoutedEventArgs e)
|
||||
private async void BtnCreateNew_Click(object? sender, global::Avalonia.Interactivity.RoutedEventArgs e)
|
||||
{
|
||||
if (_recipeCreationTool.CreateRecipe(out var recipeName))
|
||||
var recipeName = await _recipeCreationTool.CreateRecipeAsync();
|
||||
if (recipeName != null)
|
||||
{
|
||||
_recipeSelectionVm.SelectedRecipe = new RecipeData { RecipeName = recipeName };
|
||||
_tcs.TrySetResult(true);
|
||||
|
||||
Reference in New Issue
Block a user