Skip to content

Commit

Permalink
feat: add notification for successful database update
Browse files Browse the repository at this point in the history
DorielRivalet committed May 25, 2023
1 parent 16c0e88 commit b0fc1b1
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions MHFZ_Overlay/ConfigWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -2837,6 +2837,7 @@ private void StatsTextComboBox_SelectionChanged(object sender, SelectionChangedE
}
}

// TODO: double-check the settings and the conditionals in the other code
private void settingsPresetComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Settings s = (Settings)Application.Current.TryFindResource("Settings");
2 changes: 2 additions & 0 deletions MHFZ_Overlay/Core/Class/DataAccessLayer/DatabaseManager.cs
Original file line number Diff line number Diff line change
@@ -9886,6 +9886,8 @@ private void UpdateDatabaseSchema(SQLiteConnection connection)
}

transaction.Commit();
logger.Info("Successfully updated database schema");
MessageBox.Show("Successfully updated database schema", LoggingManager.INFO_TITLE, MessageBoxButton.OK, MessageBoxImage.Information);
}
catch (Exception ex)
{

0 comments on commit b0fc1b1

Please sign in to comment.