Skip to content

Commit

Permalink
fix: number of entries in group did not immediately update when addin…
Browse files Browse the repository at this point in the history
…g entries
  • Loading branch information
PhilippC committed Jan 14, 2025
1 parent 81b48a3 commit 090bc62
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Kp2aBusinessLogic/database/edit/AddEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,15 @@ public override void Run() {

// Mark parent group dirty
_app.DirtyGroups.Add(parent);

// even mark the parent of the parent dirty to update the views showing the number of child entries
if (parent?.ParentGroup != null)
{
_app.DirtyGroups.Add(parent.ParentGroup);
}



} else
} else
{
StatusLogger.UpdateMessage(UiStringKey.UndoingChanges);
//TODO test fail
Expand Down

0 comments on commit 090bc62

Please sign in to comment.