diff --git a/freecad/kiconnect/commands/cmd_reload.py b/freecad/kiconnect/commands/cmd_reload.py index e5cf484..c67614e 100644 --- a/freecad/kiconnect/commands/cmd_reload.py +++ b/freecad/kiconnect/commands/cmd_reload.py @@ -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}')