From 1289cbc259683ad994b1b0b7356a947227afd200 Mon Sep 17 00:00:00 2001 From: DevMando Date: Mon, 7 Sep 2026 20:19:26 -0700 Subject: [PATCH] Fix: Keep snapshot, history, and note lists stable after deletion --- .../MandoCode.Desktop.Tests.csproj | 1 + .../StableCollectionTests.cs | 51 ++++++++++++++++ src/MandoCode.Desktop/MainWindow.History.cs | 17 +++++- src/MandoCode.Desktop/MainWindow.Notes.cs | 11 +++- src/MandoCode.Desktop/MainWindow.Snapshots.cs | 11 +++- .../MainWindow.ViewModels.cs | 60 +++++-------------- src/MandoCode.Desktop/MainWindow.xaml | 17 +++--- .../Services/StableCollection.cs | 29 +++++++++ 8 files changed, 140 insertions(+), 57 deletions(-) create mode 100644 src/MandoCode.Desktop.Tests/StableCollectionTests.cs create mode 100644 src/MandoCode.Desktop/Services/StableCollection.cs diff --git a/src/MandoCode.Desktop.Tests/MandoCode.Desktop.Tests.csproj b/src/MandoCode.Desktop.Tests/MandoCode.Desktop.Tests.csproj index 54141f2..6846969 100644 --- a/src/MandoCode.Desktop.Tests/MandoCode.Desktop.Tests.csproj +++ b/src/MandoCode.Desktop.Tests/MandoCode.Desktop.Tests.csproj @@ -57,6 +57,7 @@ + +