Addon Manager: Implement browse for icon

This commit is contained in:
Chris Hennes
2022-09-16 09:20:46 -05:00
parent 532e509dc2
commit 115ce25a7d
3 changed files with 34 additions and 1 deletions

View File

@@ -283,6 +283,8 @@ class AddContent:
base_path = self.path_to_addon.replace("/", os.path.sep)
icon_path = new_icon_path.replace("/", os.path.sep)
if base_path[-1] != os.path.sep:
base_path += os.path.sep
if not icon_path.startswith(base_path):
FreeCAD.Console.PrintError(