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):
|
def Activated(self):
|
||||||
try:
|
try:
|
||||||
Gui.activateWorkbench('Part')
|
Gui.activateWorkbench('PartWorkbench')
|
||||||
|
except:
|
||||||
print('failed to switch to Part WB')
|
print('failed to switch to Part WB')
|
||||||
except: pass
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
Gui.removeWorkbench('KiConnect')
|
Gui.removeWorkbench('KiConnect')
|
||||||
except:
|
except:
|
||||||
print('failed to remove KiConnect')
|
print('failed to remove KiConnect')
|
||||||
pass
|
|
||||||
|
|
||||||
for mod in [mod for mod in sys.modules if 'kicon' in mod]:
|
for mod in [mod for mod in sys.modules if 'kicon' in mod]:
|
||||||
print(f'Reloading {mod}')
|
print(f'Reloading {mod}')
|
||||||
|
|
Loading…
Add table
Reference in a new issue