From 090bc6249a2e5a33ed2cac168f40941c65e7ff69 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Tue, 14 Jan 2025 15:29:22 +0100 Subject: [PATCH] fix: number of entries in group did not immediately update when adding entries --- src/Kp2aBusinessLogic/database/edit/AddEntry.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Kp2aBusinessLogic/database/edit/AddEntry.cs b/src/Kp2aBusinessLogic/database/edit/AddEntry.cs index 03dc9daa9..cea0fd9ee 100644 --- a/src/Kp2aBusinessLogic/database/edit/AddEntry.cs +++ b/src/Kp2aBusinessLogic/database/edit/AddEntry.cs @@ -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