fix workbench switching for reload command
This commit is contained in:
parent
915d4981bd
commit
8c41e66a1a
1 changed files with 2 additions and 3 deletions
|
@ -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}')
|
||||
|
|
Loading…
Add table
Reference in a new issue