AppDbUpdater: Using async/await
This commit is contained in:
@ -66,7 +66,7 @@ namespace Elwig {
|
||||
CurrentApp = this;
|
||||
}
|
||||
|
||||
protected override void OnStartup(StartupEventArgs evt) {
|
||||
protected override async void OnStartup(StartupEventArgs evt) {
|
||||
var locale = new CultureInfo("de-AT");
|
||||
locale.NumberFormat.CurrencyGroupSeparator = "\u202f";
|
||||
locale.NumberFormat.NumberGroupSeparator = "\u202f";
|
||||
@ -83,7 +83,7 @@ namespace Elwig {
|
||||
Version = typeof(App).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Split("+")[0] ?? "0.0.0";
|
||||
|
||||
try {
|
||||
AppDbUpdater.CheckDb();
|
||||
await AppDbUpdater.CheckDb();
|
||||
} catch (Exception e) {
|
||||
MessageBox.Show($"Invalid Database:\n\n{e.Message}", "Invalid Database", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
Shutdown();
|
||||
|
Reference in New Issue
Block a user