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:
+1
-1
@@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it.
|
|||||||
import configparser
|
import configparser
|
||||||
import os
|
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")
|
PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties")
|
||||||
DEFAULT_GRID_SIZE = 10
|
DEFAULT_GRID_SIZE = 10
|
||||||
DEFAULT_ADD_TIMESTAMP = True
|
DEFAULT_ADD_TIMESTAMP = True
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ def refresh_treeview_from_dom(xml_root):
|
|||||||
_tree_filled()
|
_tree_filled()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
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)
|
file_name = os.path.basename(app_state.current_file_path)
|
||||||
# Inserted plain. refresh_dirty_display puts the unsaved tag on or off, and runs
|
# 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.
|
# after every rebuild, so a fresh row picks up the right state there.
|
||||||
|
|||||||
Reference in New Issue
Block a user