Skip to content

Commit

Permalink
Merge pull request #1066 from Mbucari/master
Browse files Browse the repository at this point in the history
Fix chardonnay window closing (#1065)
  • Loading branch information
rmcrackan authored Dec 5, 2024
2 parents 9ce6cb5 + 4576c0e commit a1c8fb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
12 changes: 6 additions & 6 deletions Source/LibationAvalonia/LibationAvalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.1" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<PackageReference Include="Avalonia" Version="11.2.1" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.1" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.2" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<PackageReference Include="Avalonia" Version="11.2.2" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.2" />
<PackageReference Include="Avalonia.Controls.ItemsRepeater" Version="11.1.5" />
<PackageReference Include="Avalonia.Desktop" Version="11.2.1" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.2.1" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.1" />
<PackageReference Include="Avalonia.Desktop" Version="11.2.2" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.2.2" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.2" />
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 1 addition & 8 deletions Source/LibationAvalonia/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ static void Main(string[] args)
try
{
var config = LibationScaffolding.RunPreConfigMigrations();

//Start as much work in parallel as possible.
var classicLifetimeTask = Task.Run(() => new ClassicDesktopStyleApplicationLifetime());
var appBuilderTask = Task.Run(BuildAvaloniaApp);

if (config.LibationSettingsAreValid)
{
// most migrations go in here
Expand All @@ -62,9 +57,7 @@ static void Main(string[] args)
App.LibraryTask = Task.Run(() => DbContexts.GetLibrary_Flat_NoTracking(includeParents: true));
}

appBuilderTask.GetAwaiter().GetResult().SetupWithLifetime(classicLifetimeTask.GetAwaiter().GetResult());

classicLifetimeTask.Result.Start(null);
BuildAvaloniaApp().StartWithClassicDesktopLifetime(null);
}
catch (Exception ex)
{
Expand Down

0 comments on commit a1c8fb5

Please sign in to comment.