@@ -93,10 +93,9 @@ def __init__(self, context):
9393 path = get_package_share_directory ("rqt_controller_manager" )
9494 self ._icons = {
9595 "active" : QIcon (f"{ path } /resource/led_green.png" ),
96- "finalized" : QIcon (f"{ path } /resource/led_off.png" ),
9796 "inactive" : QIcon (f"{ path } /resource/led_cyan.png" ),
9897 "unconfigured" : QIcon (f"{ path } /resource/led_yellow.png" ),
99- "unloaded" : QIcon (f"{ path } /resource/led_black .png" ),
98+ "unloaded" : QIcon (f"{ path } /resource/led_off .png" ),
10099 }
101100
102101 # Controllers display
@@ -230,7 +229,7 @@ def _on_ctrl_menu(self, pos):
230229 menu = QMenu (self ._widget .ctrl_table_view )
231230 if ctrl .state == "active" :
232231 action_deactivate = menu .addAction (self ._icons ["inactive" ], "Deactivate" )
233- action_kill = menu .addAction (self ._icons ["finalized " ], "Deactivate and Unload" )
232+ action_kill = menu .addAction (self ._icons ["unloaded " ], "Deactivate and Unload" )
234233 elif ctrl .state == "inactive" :
235234 action_activate = menu .addAction (self ._icons ["active" ], "Activate" )
236235 action_cleanup = menu .addAction (self ._icons ["unconfigured" ], "Cleanup" )
@@ -252,7 +251,7 @@ def _on_ctrl_menu(self, pos):
252251 elif action is action_kill :
253252 self ._deactivate_controller (ctrl .name )
254253 unload_controller (self ._node , self ._cm_name , ctrl .name )
255- elif ctrl .state in ( "finalized" , " inactive") :
254+ elif ctrl .state == " inactive" :
256255 if action is action_activate :
257256 self ._activate_controller (ctrl .name )
258257 elif action is action_cleanup :
0 commit comments