From f4290f49054ac516c3519ea7634d3e14fc48a864 Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Fri, 25 Aug 2023 10:52:06 +0200 Subject: [PATCH] [BUG] Fix fast renames causes duplicated item (#497), version 1.3.2.7 --- Business/Menus.cs | 6 ++---- Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Business/Menus.cs b/Business/Menus.cs index 6673bbab..2eb812c4 100644 --- a/Business/Menus.cs +++ b/Business/Menus.cs @@ -1360,14 +1360,12 @@ private void RenameItem(RenamedEventArgs e) if (rowData.Path.StartsWith($"{e.OldFullPath}")) { string path = rowData.Path.Replace(e.OldFullPath, e.FullPath); - FileAttributes attr = File.GetAttributes(path); - bool isFolder = (attr & FileAttributes.Directory) == FileAttributes.Directory; - if (isFolder) + if (rowData.IsFolder) { path = Path.GetDirectoryName(path); } - RowData rowDataRenamed = new(isFolder, rowData.IsAddionalItem, false, 0, path); + RowData rowDataRenamed = new(rowData.IsFolder, rowData.IsAddionalItem, false, 0, path); if (FolderOptions.IsHidden(rowDataRenamed)) { continue; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index fded143d..189a4f68 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -39,5 +39,5 @@ // 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.2.6")] -[assembly: AssemblyFileVersion("1.3.2.6")] +[assembly: AssemblyVersion("1.3.2.7")] +[assembly: AssemblyFileVersion("1.3.2.7")]