mirror of
https://gitlab.com/prpl-foundation/prplmesh/topologyviewer.git
synced 2025-12-20 00:51:07 +08:00
render-state: render Agent node as solid circle
If an Agent does not have any associated stations, render is as a solid circle. Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
This commit is contained in:
@@ -83,4 +83,7 @@ class AgentRenderState():
|
||||
new_render_state = self.__get_initial_render_state(agent)
|
||||
elif previous_render_state == EnumAgentRenderState.SOLID:
|
||||
new_render_state = self.__get_initial_render_state(agent)
|
||||
# Finally, check if there's been any station updates.
|
||||
if len(agent.get_connected_stations()) == 0:
|
||||
new_render_state = EnumAgentRenderState.SOLID
|
||||
self.agent_render_states[agent_id] = new_render_state
|
||||
|
||||
Reference in New Issue
Block a user