@@ -233,7 +233,7 @@ def _on_ctrl_menu(self, pos):
233
233
action_kill = menu .addAction (self ._icons ["finalized" ], "Deactivate and Unload" )
234
234
elif ctrl .state == "inactive" :
235
235
action_activate = menu .addAction (self ._icons ["active" ], "Activate" )
236
- action_unload = menu .addAction (self ._icons ["unconfigured" ], "Unload " )
236
+ action_cleanup = menu .addAction (self ._icons ["unconfigured" ], "Cleanup " )
237
237
elif ctrl .state == "unconfigured" :
238
238
action_configure = menu .addAction (self ._icons ["inactive" ], "Configure" )
239
239
action_spawn = menu .addAction (self ._icons ["active" ], "Configure and Activate" )
@@ -255,8 +255,10 @@ def _on_ctrl_menu(self, pos):
255
255
elif ctrl .state in ("finalized" , "inactive" ):
256
256
if action is action_activate :
257
257
self ._activate_controller (ctrl .name )
258
- elif action is action_unload :
258
+ elif action is action_cleanup :
259
+ self ._deactivate_controller (ctrl .name )
259
260
unload_controller (self ._node , self ._cm_name , ctrl .name )
261
+ load_controller (self ._node , self ._cm_name , ctrl .name )
260
262
elif ctrl .state == "unconfigured" :
261
263
if action is action_configure :
262
264
configure_controller (self ._node , self ._cm_name , ctrl .name )
0 commit comments