earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

Prevent obliteration of a folder by trying to move it into itself. #207

Closed jmmerchant closed 11 months ago

jmmerchant commented 1 year ago

I ran into issue #193 earlier tonight, so I did a little investigation and concocted this (possibly partial) solution. This does prevent immediate destruction of the moved folder, but I'm not familiar enough with the code to say it doesn't have other consequences.

earlSt1 commented 1 year ago

Hi, thanks for raising this! I thought I fixed this issue but it may be for the sidebar folders, not the ones in compendiums. I'll give it a spin soon and see if it looks ok. That's the check I would have added though so I'd imagine its fine