Skip cleanup if there's only one single file #104582

Merged
Brecht Van Lommel merged 2 commits from Walles/blender-addons:johan/single-file into main 2023-06-27 10:14:13 +02:00

2 Commits

Author SHA1 Message Date
Johan Walles daee55f8fc Handle review comment
The dict cannot be None, and thus the first check is redundant.
2023-06-26 19:48:17 +02:00
Johan Walles 88e4a02081 Skip cleanup if there's only one single file
Fixes #104573

Before this change we tried to cleanup a list consisting of a single
file only. Then, since that single file had the same prefix as itself,
we removed it from the list.

With this change in place, we skip cleanup if there's only one single
file.
2023-06-26 19:48:17 +02:00