include the package version number in the edit-config title

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2024-02-17 23:02:00 -06:00
parent 0ab372f9fd
commit 03a8235445
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ from textual.validation import Number
from textual.widgets import Button, Footer, Header, Input, Label, Pretty, Select, Tree
from textual.widgets.tree import TreeNode
from gp2040ce_bintools import core_parser, handler
from gp2040ce_bintools import core_parser, handler, _version
from gp2040ce_bintools.builder import write_new_config_to_filename, write_new_config_to_usb
from gp2040ce_bintools.rp2040 import get_bootsel_endpoints, read
from gp2040ce_bintools.storage import (STORAGE_SIZE, USER_CONFIG_BOOTSEL_ADDRESS, ConfigReadError, get_config,
@ -132,7 +132,7 @@ class ConfigEditor(App):
('q', 'quit', "Quit"),
]
CSS_PATH = "config_tree.css"
TITLE = "GP2040-CE Configuration Editor"
TITLE = F"GP2040-CE Configuration Editor - {_version.version}"
def __init__(self, *args, **kwargs):
"""Initialize config."""