Skip to content

Commit 520751e

Browse files
vb2aeCopilot
andcommitted
Update samples/features/Features.Avalonia/Bootstrapper.cs
Co-authored-by: Copilot <[email protected]>
1 parent 4121ef0 commit 520751e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

samples/features/Features.Avalonia/Bootstrapper.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ public Bootstrapper()
1919

2020
Initialize();
2121

22-
Task displayTask = DisplayRootViewFor<ShellViewModel>();
23-
displayTask.Wait();
22+
InitializeAsync();
2423
}
2524

25+
private async void InitializeAsync()
26+
{
27+
await DisplayRootViewFor<ShellViewModel>();
28+
}
2629
protected override void Configure()
2730
{
2831
_container

0 commit comments

Comments
 (0)