store each solutions open tabs

This commit is contained in:
Matt Parker
2025-10-22 20:15:04 +10:00
parent 7ac3947563
commit 2e9598b217
4 changed files with 30 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ public partial class IdeWindow : Control
}
ideRoot.SetSlnFilePath(slnPath);
var recentSln = new RecentSln { FilePath = slnPath, Name = Path.GetFileName(slnPath) };
Singletons.AppState.RecentSlns.RemoveAll(s => s == recentSln); // Move to end (most recent)
Singletons.AppState.RecentSlns.RemoveAll(s => s.FilePath == recentSln.FilePath); // Move to end (most recent)
Singletons.AppState.RecentSlns.Add(recentSln);
await this.InvokeAsync(() =>