diff --git a/AppForKids/MainWindow.axaml.cs b/AppForKids/MainWindow.axaml.cs index a82e035..a0b519d 100644 --- a/AppForKids/MainWindow.axaml.cs +++ b/AppForKids/MainWindow.axaml.cs @@ -32,5 +32,6 @@ public partial class MainWindow : Window _currentUser.Clicks += 1; dbContext.Update(_currentUser); if(dbContext.SaveChanges() > 0) CountClickText(); + dbContext.Dispose(); } } \ No newline at end of file