fix workbench switching for reload command

This commit is contained in:
Morgan 'ARR\!' Allen 2025-04-23 14:33:19 -07:00
parent 915d4981bd
commit 8c41e66a1a

View file

@ -19,15 +19,14 @@ class Reload:
def Activated(self):
try:
Gui.activateWorkbench('Part')
Gui.activateWorkbench('PartWorkbench')
except:
print('failed to switch to Part WB')
except: pass
try:
Gui.removeWorkbench('KiConnect')
except:
print('failed to remove KiConnect')
pass
for mod in [mod for mod in sys.modules if 'kicon' in mod]:
print(f'Reloading {mod}')