Hofknecht / SystemTrayMenu

SystemTrayMenu - Browse and open your files easily
http://hofknecht.eu/systemtraymenu/
GNU General Public License v3.0
642 stars 45 forks source link

[BUG] Fix fast renames causes duplicated item #497

Closed Hofknecht closed 1 year ago

Hofknecht commented 1 year ago

user reported that sometimes there are duplicated items.

we explained:

  1. when i have a structure C:\test\1\2\3\file and i add 'C:\test\1' 'C:\test\1\2' and 'C:\test\1\2\3' as recursive then it might add 'C:\test\1\2\3\file' three times. => user does not use settings 'Directories'

  2. when using 'Filter menu by file type' this can happen 2023-08-18 21_39_09-Window => user does not use settings 'Filter menu by file type'

  3. when using relativ path this can happen 2023-08-18 21_31_24-Window =>...

Hofknecht commented 1 year ago

issue is caused by fast renames of file. The renamed file not more exists, when STM wants to check if it is a file or directory. It fails wrong because it not renames the rowdata:

2023-08-25 10_18_54-Window

we not need to check if it is a file or directory in that line because we already know from previous orignial rowdata.