Fix: ensure loaded path is folder and not file #104812

Closed
Daniel Grauer wants to merge 4 commits from DanielGrauer:fix-error-when-file-is-selected into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

4 Commits

Author SHA1 Message Date
Daniel Grauer 1b985c5ed7 optimize register/unregister 2023-08-20 15:20:23 +02:00
Daniel Grauer 9bedba2ac5 add filtering to window manager to only show folders and images since this is what the user wants to see when using this addon 2023-08-20 15:20:23 +02:00
Daniel Grauer 195acac65e replace filepath with directory to avoid workaround 2023-08-20 15:20:23 +02:00
Daniel Grauer a3ca868eb3 Fix: ensure loaded path is folder and not file
The input path to load brush sets only works with a folder as path. If a file is selected in the filemanger to load the path the import fails and throws a error. To avoid the import failing, the filename is now stripped from the path to load the folder.
2023-08-20 15:20:23 +02:00