diff --git a/Business/Menus.cs b/Business/Menus.cs index 003feb7..4cc8f61 100644 --- a/Business/Menus.cs +++ b/Business/Menus.cs @@ -1310,28 +1310,15 @@ namespace SystemTrayMenu.Business RowData rowData = (RowData)row[2]; if (rowData.Path.StartsWith($"{e.OldFullPath}")) { - bool isAddionalPathRenamed = false; - string oldPath = rowData.Path; string path = rowData.Path.Replace(e.OldFullPath, e.FullPath); - foreach (var pathAndFlags in MenusHelpers.GetAddionalPathsForMainMenu()) - { - if (oldPath.StartsWith($"{pathAndFlags.Path}\\") && - !path.StartsWith($"{pathAndFlags.Path}\\")) - { - isAddionalPathRenamed = true; - break; - } - } - - if (isAddionalPathRenamed) - { - continue; - } - FileAttributes attr = File.GetAttributes(path); bool isFolder = (attr & FileAttributes.Directory) == FileAttributes.Directory; - bool isAddionalItem = Path.GetDirectoryName(path) != Config.Path; - RowData rowDataRenamed = new(isFolder, isAddionalItem, false, 0, path); + if (isFolder) + { + path = Path.GetDirectoryName(path); + } + + RowData rowDataRenamed = new(isFolder, rowData.IsAddionalItem, false, 0, path); if (FolderOptions.IsHidden(rowDataRenamed)) { continue; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 6771a96..63fa312 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -39,5 +39,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.1.1")] -[assembly: AssemblyFileVersion("1.3.1.1")] +[assembly: AssemblyVersion("1.3.1.2")] +[assembly: AssemblyFileVersion("1.3.1.2")]