@@ -233,7 +233,7 @@ def _on_ctrl_menu(self, pos):
233233 action_kill = menu .addAction (self ._icons ["finalized" ], "Deactivate and Unload" )
234234 elif ctrl .state == "inactive" :
235235 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 " )
237237 elif ctrl .state == "unconfigured" :
238238 action_configure = menu .addAction (self ._icons ["inactive" ], "Configure" )
239239 action_spawn = menu .addAction (self ._icons ["active" ], "Configure and Activate" )
@@ -255,8 +255,10 @@ def _on_ctrl_menu(self, pos):
255255 elif ctrl .state in ("finalized" , "inactive" ):
256256 if action is action_activate :
257257 self ._activate_controller (ctrl .name )
258- elif action is action_unload :
258+ elif action is action_cleanup :
259+ self ._deactivate_controller (ctrl .name )
259260 unload_controller (self ._node , self ._cm_name , ctrl .name )
261+ load_controller (self ._node , self ._cm_name , ctrl .name )
260262 elif ctrl .state == "unconfigured" :
261263 if action is action_configure :
262264 configure_controller (self ._node , self ._cm_name , ctrl .name )
0 commit comments