mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-16 02:13:39 +12:00
[BUG] Fix fast renames causes duplicated item (#497), version 1.3.2.7
This commit is contained in:
parent
9bc8847f3c
commit
f4290f4905
|
@ -1360,14 +1360,12 @@ namespace SystemTrayMenu.Business
|
||||||
if (rowData.Path.StartsWith($"{e.OldFullPath}"))
|
if (rowData.Path.StartsWith($"{e.OldFullPath}"))
|
||||||
{
|
{
|
||||||
string path = rowData.Path.Replace(e.OldFullPath, e.FullPath);
|
string path = rowData.Path.Replace(e.OldFullPath, e.FullPath);
|
||||||
FileAttributes attr = File.GetAttributes(path);
|
if (rowData.IsFolder)
|
||||||
bool isFolder = (attr & FileAttributes.Directory) == FileAttributes.Directory;
|
|
||||||
if (isFolder)
|
|
||||||
{
|
{
|
||||||
path = Path.GetDirectoryName(path);
|
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))
|
if (FolderOptions.IsHidden(rowDataRenamed))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.3.2.6")]
|
[assembly: AssemblyVersion("1.3.2.7")]
|
||||||
[assembly: AssemblyFileVersion("1.3.2.6")]
|
[assembly: AssemblyFileVersion("1.3.2.7")]
|
||||||
|
|
Loading…
Reference in a new issue