Implement Write() in Config and rename DatabasePath to DatabaseFile

This commit is contained in:
2023-04-15 22:55:01 +02:00
parent ecf5ed8d55
commit 27fbae088a
3 changed files with 10 additions and 8 deletions

View File

@ -26,7 +26,7 @@ namespace Elwig {
protected override void OnStartup(StartupEventArgs evt) {
using (var ctx = new AppDbContext()) {
if (!ctx.Database.CanConnect()) {
MessageBox.Show($"Invalid Database:\n\n{Config.DatabasePath}", "Invalid Database", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show($"Invalid Database:\n\n{Config.DatabaseFile}", "Invalid Database", MessageBoxButton.OK, MessageBoxImage.Error);
Shutdown();
}
}