Export: Implement exporting and importing of sqlite3 and sql files
All checks were successful
Test / Run tests (push) Successful in 2m15s

This commit is contained in:
2025-09-15 10:53:27 +02:00
parent 4b8cd2a0d7
commit f02598760f
6 changed files with 253 additions and 31 deletions

View File

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