ElwigData: Check zip file integrity
All checks were successful
Test / Run tests (push) Successful in 1m59s

This commit is contained in:
2025-08-06 12:31:19 +02:00
parent 73fe4531cc
commit d3157e4d48
5 changed files with 21 additions and 5 deletions

View File

@@ -240,9 +240,9 @@ namespace Elwig {
}
}
public static void ReplaceDatabase(string filename) {
public static async Task ReplaceDatabase(string filename) {
try {
ElwigData.ImportDatabase(filename);
await ElwigData.ImportDatabase(filename);
MessageBox.Show("Das Ersetzen war erfolgreich!\n\nBitte starten Sie Elwig neu!", "Datenbank ersetzen", MessageBoxButton.OK, MessageBoxImage.Information);
ForceShutdown = true;
Current.Shutdown();