add version

This commit is contained in:
VALLONGOL 2025-12-01 12:33:26 +01:00
parent 861f2f3f9c
commit e4e9b1d747

View File

@ -32,6 +32,13 @@ from .batch_converter import BatchConverterTab
# EditorWindow non viene usato in questo file, ma lo lasciamo per coerenza
# from .editor import EditorWindow
try:
from markdownconverter import _version as wrapper_version
WRAPPER_APP_VERSION_STRING = f"{wrapper_version.__version__} ({wrapper_version.GIT_BRANCH}/{wrapper_version.GIT_COMMIT_HASH[:7]})"
except ImportError:
WRAPPER_APP_VERSION_STRING = "(Dev Wrapper)"
log = get_logger(__name__)
# ... (open_with_default_app, open_output_folder, ProfileManagerWindow sono INVARIATE)
@ -64,6 +71,7 @@ def open_output_folder(filepath: str):
class ProfileManagerWindow(tb.Toplevel):
def __init__(self, parent, config_data, app_instance):
super().__init__(master=parent, title="Manage Profiles")
self.geometry("500x400")
self.transient(parent)
self.config_data = config_data
@ -144,7 +152,8 @@ class ProfileManagerWindow(tb.Toplevel):
class MarkdownConverterApp:
def __init__(self, root):
self.root = root
self.root.title("Markdown Converter")
base_title = f"Markdown converter - {WRAPPER_APP_VERSION_STRING}"
self.root.title(base_title)
self.root.geometry("900x850")
self._setup_logging()
self.config = load_configuration()