Addon Manager: Refactor overall top bar

This commit is contained in:
Chris Hennes
2024-02-03 22:28:50 +01:00
parent 7b751ebb37
commit 5f2df54811
6 changed files with 91 additions and 193 deletions

View File

@@ -40,6 +40,7 @@ try:
except ImportError:
QtCore = None
QtWidgets = None
QtGui = None
import addonmanager_freecad_interface as fci
@@ -95,7 +96,7 @@ def symlink(source, link_name):
raise ctypes.WinError()
def rmdir(path: os.PathLike) -> bool:
def rmdir(path: str) -> bool:
try:
if os.path.islink(path):
os.unlink(path) # Remove symlink