From 52bb55ad756d2858fa7f16bb3b0dd7f1d38f573a Mon Sep 17 00:00:00 2001 From: viruscamp Date: Wed, 15 May 2024 08:42:32 +0800 Subject: [PATCH] prevent the existing items appear multiple times in File -> Recent Items menu --- DependenciesGui/MainWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DependenciesGui/MainWindow.xaml.cs b/DependenciesGui/MainWindow.xaml.cs index 4369f1f3..967cd2ed 100755 --- a/DependenciesGui/MainWindow.xaml.cs +++ b/DependenciesGui/MainWindow.xaml.cs @@ -189,7 +189,8 @@ public void PopulateRecentFilesMenuItems() return; } - + // prevent the existing items appear multiple times + RecentsItems.Clear(); foreach (var RecentFilePath in Properties.Settings.Default.RecentFiles) { // Ignore empty dummy entries