Skip to content

Commit

Permalink
Add SplashScreen view import and update initialization
Browse files Browse the repository at this point in the history
Importing the SplashScreen view allows the application to display a splash screen during launch. Additionally, updating the OnFrameworkInitializationCompleted method to be asynchronous supports potential future asynchronous operations.
  • Loading branch information
GamerVII-NET committed Sep 1, 2024
1 parent 3b64970 commit 9c221d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gml.Launcher/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Avalonia.Markup.Xaml;
using Gml.Launcher.ViewModels;
using Gml.Launcher.Views;
using Gml.Launcher.Views.SplashScreen;

namespace Gml.Launcher;

Expand All @@ -13,7 +14,7 @@ public override void Initialize()
AvaloniaXamlLoader.Load(this);
}

public override void OnFrameworkInitializationCompleted()
public override async void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
Expand Down

0 comments on commit 9c221d3

Please sign in to comment.