Refresh node list only on change

This commit is contained in:
Russell Schmidt
2025-01-17 07:40:08 -06:00
parent 5bd33ed786
commit 93664397e8
+4 -2
View File
@@ -22,8 +22,10 @@ def on_receive(packet, interface):
# Assume any incoming packet could update the last seen time for a node, so we
# may need to reorder the list. This could probably be limited to specific packets.
globals.node_list = get_node_list()
draw_node_list()
new_node_list = get_node_list()
if(new_node_list != globals.node_list):
globals.node_list = new_node_list
draw_node_list()
if packet['decoded']['portnum'] == 'NODEINFO_APP':
if "user" in packet['decoded'] and "longName" in packet['decoded']["user"]: