We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb25774 commit 23a1e5bCopy full SHA for 23a1e5b
Flow.Launcher/App.xaml.cs
@@ -54,6 +54,9 @@ public App()
54
.AddSingleton<MainViewModel>()
55
).Build();
56
Ioc.Default.ConfigureServices(host.Services);
57
+
58
+ // Initialize the public API first
59
+ API = Ioc.Default.GetRequiredService<IPublicAPI>();
60
}
61
62
[STAThread]
@@ -73,8 +76,6 @@ private async void OnStartupAsync(object sender, StartupEventArgs e)
73
76
{
74
77
await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
75
78
- API = Ioc.Default.GetRequiredService<IPublicAPI>();
-
79
Ioc.Default.GetRequiredService<Updater>().Initialize(Launcher.Properties.Settings.Default.GithubRepo);
80
81
Ioc.Default.GetRequiredService<Portable>().PreStartCleanUpAfterPortabilityUpdate();
0 commit comments