From f241448a5b837b994789182895689d2b8c47fc4e Mon Sep 17 00:00:00 2001 From: Arda Aydin Date: Thu, 24 Sep 2026 10:32:25 +0300 Subject: [PATCH] Show device host:port on tree root row in live mode Co-Authored-By: Claude Opus 5.5 --- app_state.py | 2 +- sax_file.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app_state.py b/app_state.py index e275dbd..dda9367 100644 --- a/app_state.py +++ b/app_state.py @@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it. import configparser import os -VERSION = "0.0.0.127" +VERSION = "0.0.0.128" PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties") DEFAULT_GRID_SIZE = 10 DEFAULT_ADD_TIMESTAMP = True diff --git a/sax_file.py b/sax_file.py index ba77131..cf18e38 100644 --- a/sax_file.py +++ b/sax_file.py @@ -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)