Show device host:port on tree root row in live mode

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-24 10:32:25 +03:00
co-authored by Claude Opus 5.5
parent f3446f32ad
commit f241448a5b
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -63,7 +63,10 @@ def refresh_treeview_from_dom(xml_root):
_tree_filled()
return
file_name = os.path.basename(app_state.current_file_path)
if app_state.live_mode:
file_name = f"{app_state.device_host}:{app_state.device_port}"
else:
file_name = os.path.basename(app_state.current_file_path)
# Inserted plain. refresh_dirty_display puts the unsaved tag on or off, and runs
# after every rebuild, so a fresh row picks up the right state there.
root_node = tree.insert("", "end", text=file_name, open=True)