diff --git a/pdm.lock b/pdm.lock index 3bece04..6ca8ae1 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "build", "lint", "test"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:4f869c706d2d3e53762814d8c7e4076d92eb7718ef7c88ebbf1379cefcaa907b" +content_hash = "sha256:73444dd5826d66b4c4506b1acd5a98af52d7e197efe40d7a2d628bff76453df3" [[metadata.targets]] requires_python = ">=3.14,<3.15" @@ -336,7 +336,7 @@ files = [ [[package]] name = "porringer" -version = "0.2.1.dev71" +version = "0.2.1.dev72" requires_python = ">=3.14" summary = "" groups = ["default"] @@ -349,8 +349,8 @@ dependencies = [ "userpath>=1.9.2", ] files = [ - {file = "porringer-0.2.1.dev71-py3-none-any.whl", hash = "sha256:727367880f0e3b419cce2f58fb7efd81b55e756291bc3ebf5fca577531068061"}, - {file = "porringer-0.2.1.dev71.tar.gz", hash = "sha256:e8aeaa446639f34a95f18a11c35b6c71fb9fe1a29d0a9e31cc2bfebba30f369e"}, + {file = "porringer-0.2.1.dev72-py3-none-any.whl", hash = "sha256:e6e74d2f24429eb925b021e405437c36bdbe8098cebbe3a44597e60bd84921d8"}, + {file = "porringer-0.2.1.dev72.tar.gz", hash = "sha256:da826d8b96878d51b6e5596b9c63f6ecd0d09e81bca2d731bb0ca2aa0c265397"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index 3e294fe..eefc3c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ requires-python = ">=3.14, <3.15" dependencies = [ "pyside6>=6.10.2", "packaging>=26.0", - "porringer>=0.2.1.dev71", + "porringer>=0.2.1.dev72", "qasync>=0.28.0", "velopack>=0.0.1444.dev49733", "typer>=0.24.1", @@ -25,9 +25,18 @@ homepage = "https://github.com/synodic/synodic-client" repository = "https://github.com/synodic/synodic-client" [dependency-groups] -build = ["pyinstaller>=6.19.0"] -lint = ["ruff>=0.15.4", "pyrefly>=0.55.0"] -test = ["pytest>=9.0.2", "pytest-cov>=7.0.0", "pytest-mock>=3.15.1"] +build = [ + "pyinstaller>=6.19.0", +] +lint = [ + "ruff>=0.15.4", + "pyrefly>=0.55.0", +] +test = [ + "pytest>=9.0.2", + "pytest-cov>=7.0.0", + "pytest-mock>=3.15.1", +] [project.scripts] synodic-c = "synodic_client.cli:app" diff --git a/synodic_client/application/screen/settings.py b/synodic_client/application/screen/settings.py index ed2e526..11d10e2 100644 --- a/synodic_client/application/screen/settings.py +++ b/synodic_client/application/screen/settings.py @@ -27,6 +27,7 @@ QWidget, ) +from synodic_client._version import __version__ from synodic_client.application.icon import app_icon from synodic_client.application.screen.card import CardFrame from synodic_client.application.theme import SETTINGS_WINDOW_MIN_SIZE, UPDATE_STATUS_CHECKING_STYLE @@ -92,6 +93,11 @@ def _init_ui(self) -> None: layout.addWidget(self._build_advanced_section()) layout.addStretch() + version_label = QLabel(f'Version {__version__}') + version_label.setAlignment(Qt.AlignmentFlag.AlignCenter) + version_label.setStyleSheet('color: rgba(255, 255, 255, 0.4); font-size: 11px;') + layout.addWidget(version_label) + scroll.setWidget(container) self.setCentralWidget(scroll) diff --git a/synodic_client/updater.py b/synodic_client/updater.py index a088c6b..4b0b922 100644 --- a/synodic_client/updater.py +++ b/synodic_client/updater.py @@ -113,10 +113,10 @@ class UpdateInfo: # Default interval for automatic update checks (minutes) -DEFAULT_AUTO_UPDATE_INTERVAL_MINUTES = 30 +DEFAULT_AUTO_UPDATE_INTERVAL_MINUTES = 5 # Default interval for tool update checks (minutes) -DEFAULT_TOOL_UPDATE_INTERVAL_MINUTES = 20 +DEFAULT_TOOL_UPDATE_INTERVAL_MINUTES = 5 @dataclass