mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-07-09 16:26:02 +12:00
[BUG] Fix fast renames causes duplicated item (#497), version 1.3.2.7
This commit is contained in:
parent
79d70222cc
commit
8a382eaacd
|
@ -686,9 +686,7 @@ 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)
|
|
||||||
{
|
{
|
||||||
string? dirpath = Path.GetDirectoryName(path);
|
string? dirpath = Path.GetDirectoryName(path);
|
||||||
if (string.IsNullOrEmpty(dirpath))
|
if (string.IsNullOrEmpty(dirpath))
|
||||||
|
@ -699,7 +697,7 @@ namespace SystemTrayMenu.Business
|
||||||
path = dirpath;
|
path = dirpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
RowData rowDataRenamed = new(isFolder, rowData.IsAdditionalItem, 0, path);
|
RowData rowDataRenamed = new(rowData.IsFolder, rowData.IsAdditionalItem, 0, path);
|
||||||
FolderOptions.ReadHiddenAttributes(rowDataRenamed.Path, out bool hasHiddenFlag, out bool isDirectoryToHide);
|
FolderOptions.ReadHiddenAttributes(rowDataRenamed.Path, out bool hasHiddenFlag, out bool isDirectoryToHide);
|
||||||
if (isDirectoryToHide)
|
if (isDirectoryToHide)
|
||||||
{
|
{
|
||||||
|
|
|
@ -293,7 +293,8 @@ Thanks for ideas, reporting issues and contributing!
|
||||||
#463 #494 Dirk S.,
|
#463 #494 Dirk S.,
|
||||||
#466 [Dean-Corso](https://github.com/Dean-Corso),
|
#466 [Dean-Corso](https://github.com/Dean-Corso),
|
||||||
#488 [DailenG](https://github.com/DailenG),
|
#488 [DailenG](https://github.com/DailenG),
|
||||||
#490 [TrampiPW](https://github.com/TrampiPW)
|
#490 [TrampiPW](https://github.com/TrampiPW),
|
||||||
|
#497 Aziz
|
||||||
|
|
||||||
|
|
||||||
Donations
|
Donations
|
||||||
|
|
|
@ -93,34 +93,80 @@ namespace SystemTrayMenu.UserInterface
|
||||||
moreInfo += "(Version 3, 29 June 2007)" + Environment.NewLine;
|
moreInfo += "(Version 3, 29 June 2007)" + Environment.NewLine;
|
||||||
|
|
||||||
moreInfo += "Thanks for ideas, reporting issues and contributing!" + Environment.NewLine;
|
moreInfo += "Thanks for ideas, reporting issues and contributing!" + Environment.NewLine;
|
||||||
moreInfo += "#123 Mordecai00, #125 Holgermh, #135 #153 #154 #164 jakkaas, #145 Pascal Aloy, #153 #158 #160 blackcrack,";
|
moreInfo +=
|
||||||
moreInfo += "#162 HansieNL, #163 igorruckert, #171 kehoen, #186 Dtrieb, #188 #189 #191 #195 iJahangard, #195 #197 #225 #238 the-phuctran, ";
|
"#123 Mordecai00, " +
|
||||||
moreInfo += "#205 kristofzerbe, #209 jonaskohl, #211 blacksparrow15, #220 #403 Yavuz E., #229 #230 #239 Peter O., #231 Ryonez, ";
|
"#125 Holgermh, " +
|
||||||
moreInfo += "#235 #242 243 #247, #271 Tom, #237 Torsten S., #240 video Patrick, #244 Gunter D., #246 #329 MACE4GITHUB, #259 #310 vanjac, ";
|
"#135 #153 #154 #164 jakkaas, " +
|
||||||
moreInfo += "#262 terencemcdonnell, #269 petersnows25, #272 Peter M., #273 #274 ParasiteDelta, #275 #276 #278 donaldaken, ";
|
"#145 Pascal Aloy, " +
|
||||||
moreInfo += "#277 Jan S., #282 akuznets, #283 #284 #289 RuSieg, #285 #286 dao-net, #288 William P., #294 #295 #296 Stefan Mahrer, ";
|
"#153 #158 #160 blackcrack, " +
|
||||||
moreInfo += "#225 #297 #299 #317 #321 #324 #330 #386 #390 #401 #402 #407 #409 #414 #416 #418 #428 #430 #443 chip33, ";
|
"#162 HansieNL, " +
|
||||||
moreInfo += "#298 phanirithvij, #306 wini2, #370 dna5589, #372 not-nef, #376 Michelle H., ";
|
"#163 igorruckert, " +
|
||||||
moreInfo += "#377 SoenkeHob, #380 #394 TransLucida, #384 #434 #435 boydfields, #386 visusys, #387 #411 #444 yrctw" + Environment.NewLine;
|
"#171 kehoen, " +
|
||||||
moreInfo += "#446 timinformatica, #450 ppt-oldoerp, #453 fubaWoW, #454 WouterVanGoey" + Environment.NewLine;
|
"#186 Dtrieb, " +
|
||||||
moreInfo += "#462 verdammt89x, #463 Dirk S., #466 Dean-Corso, #488 DailenG, #490 TrampiPW" + Environment.NewLine;
|
"#188 #189 #191 #195 iJahangard, " +
|
||||||
moreInfo += @"
|
"#195 #197 #225 #238 the-phuctran, " +
|
||||||
Sponsors - Thank you!
|
"#205 kristofzerbe, " +
|
||||||
------------------
|
"#209 jonaskohl, " +
|
||||||
* Stefan Mahrer
|
"#211 blacksparrow15, " +
|
||||||
* boydfields
|
"#220 #403 Yavuz E., " +
|
||||||
* RuSieg
|
"#229 #230 #239 Peter O., " +
|
||||||
* igor-davidov
|
"#231 Ryonez, " +
|
||||||
* Ralf K.
|
"#235 #242 243 #247, #271 Tom, " +
|
||||||
* Tim K.
|
"#237 Torsten S., " +
|
||||||
* Georg W.
|
"#240 video Patrick, " +
|
||||||
* donaldaken
|
"#244 Gunter D., " +
|
||||||
* Marc Speer
|
"#246 #329 MACE4GITHUB, " +
|
||||||
* Cito
|
"#259 #310 vanjac, " +
|
||||||
* Peter G.
|
"#262 terencemcdonnell, " +
|
||||||
* Traditional_Tap3954
|
"#269 petersnows25, " +
|
||||||
* Maximilian H.
|
"#272 Peter M., " +
|
||||||
";
|
"#273 #274 ParasiteDelta, " +
|
||||||
|
"#275 #276 #278 donaldaken, " +
|
||||||
|
"#277 Jan S., " +
|
||||||
|
"#282 akuznets, " +
|
||||||
|
"#283 #284 #289 RuSieg, " +
|
||||||
|
"#285 #286 dao-net, " +
|
||||||
|
"#288 William P., " +
|
||||||
|
"#294 #295 #296 Stefan Mahrer, " +
|
||||||
|
"#225 #297 #299 #317 #321 #324 #330 #386 #390 #401 #402 #407 #409 #414 #416 #418 #428 #430 #443 chip33, " +
|
||||||
|
"#298 phanirithvij, " +
|
||||||
|
"#306 wini2, " +
|
||||||
|
"#370 dna5589, " +
|
||||||
|
"#372 not-nef, " +
|
||||||
|
"#376 Michelle H., " +
|
||||||
|
"#377 SoenkeHob, " +
|
||||||
|
"#380 #394 TransLucida, " +
|
||||||
|
"#384 #434 #435 boydfields, " +
|
||||||
|
"#386 visusys, " +
|
||||||
|
"#387 #411 #444 yrctw, " +
|
||||||
|
"#446 timinformatica, " +
|
||||||
|
"#450 ppt-oldoerp, " +
|
||||||
|
"#453 fubaWoW, " +
|
||||||
|
"#454 WouterVanGoey, " +
|
||||||
|
"#462 verdammt89x, " +
|
||||||
|
"#463 Dirk S., " +
|
||||||
|
"#466 Dean-Corso, " +
|
||||||
|
"#488 DailenG, " +
|
||||||
|
"#490 TrampiPW, " +
|
||||||
|
"#497 Aziz, " +
|
||||||
|
Environment.NewLine +
|
||||||
|
Environment.NewLine;
|
||||||
|
moreInfo += "Sponsors - Thank you!" + Environment.NewLine;
|
||||||
|
moreInfo +=
|
||||||
|
"Stefan Mahrer, " +
|
||||||
|
"boydfields, " +
|
||||||
|
"RuSieg, " +
|
||||||
|
"igor-davidov, " +
|
||||||
|
"Ralf K., " +
|
||||||
|
"Tim K., " +
|
||||||
|
"Georg W., " +
|
||||||
|
"donaldaken, " +
|
||||||
|
"Marc Speer, " +
|
||||||
|
"Cito, " +
|
||||||
|
"Peter G., " +
|
||||||
|
"Traditional_Tap3954, " +
|
||||||
|
"Maximilian H., " +
|
||||||
|
Environment.NewLine;
|
||||||
AboutBox aboutBox = new()
|
AboutBox aboutBox = new()
|
||||||
{
|
{
|
||||||
AppTitle = productName,
|
AppTitle = productName,
|
||||||
|
|
Loading…
Reference in a new issue