change onstartup name to async

This commit is contained in:
弘韬 张 2021-01-02 22:00:43 +08:00
parent 280b98b47a
commit 4cb4aa88ef
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.modernwpf.com/2019"
ShutdownMode="OnMainWindowClose"
Startup="OnStartup">
Startup="OnStartupAsync">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>

View file

@ -45,7 +45,7 @@ namespace Flow.Launcher
}
}
private async void OnStartup(object sender, StartupEventArgs e)
private async void OnStartupAsync(object sender, StartupEventArgs e)
{
await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
{