From 1dc86121f6fb33a1c5854e6aa5be5f342bc489b5 Mon Sep 17 00:00:00 2001 From: Jessey van Offeren Date: Fri, 22 May 2026 09:10:28 +0200 Subject: [PATCH] =?UTF-8?q?fix(gui):=20correct=20relative=20import=20that?= =?UTF-8?q?=20broke=20app=20startup=20=E2=80=94=200.18.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The recording indicator (0.18.0) used `from .core import diagnostic`, which resolves to the non-existent rigdoctor.gui.core and crashed MainWindow on launch. Fixed to `from ..core import diagnostic`. Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- src/rigdoctor/__init__.py | 2 +- src/rigdoctor/gui/main_window.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aceecc8..5f54068 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to RigDoctor are recorded here. Format follows (`MAJOR.MINOR.PATCH`, pre-1.0). `__version__` and `pyproject.toml` must match the git release tag (so the auto-updater, D18, can compare versions). +## [0.18.2] - 2026-05-22 +### Fixed +- **GUI wouldn't start** (0.18.0 regression): the recording indicator used a wrong relative + import (`from .core` → `rigdoctor.gui.core`, which doesn't exist), crashing `MainWindow` on + launch. Corrected to `from ..core`. + ## [0.18.1] - 2026-05-22 ### Changed - Recording badge: dropped the sample count (not useful at a glance) — it now shows just diff --git a/pyproject.toml b/pyproject.toml index caae9b0..debbbec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rigdoctor" -version = "0.18.1" +version = "0.18.2" description = "Modular hardware monitoring & crash diagnostics for Linux gamers." readme = "README.md" requires-python = ">=3.11" diff --git a/src/rigdoctor/__init__.py b/src/rigdoctor/__init__.py index 3a1d45b..c4ac1a2 100644 --- a/src/rigdoctor/__init__.py +++ b/src/rigdoctor/__init__.py @@ -1,3 +1,3 @@ """RigDoctor — modular hardware monitoring & crash diagnostics for Linux gamers.""" -__version__ = "0.18.1" +__version__ = "0.18.2" diff --git a/src/rigdoctor/gui/main_window.py b/src/rigdoctor/gui/main_window.py index afada4c..f92aac2 100644 --- a/src/rigdoctor/gui/main_window.py +++ b/src/rigdoctor/gui/main_window.py @@ -263,7 +263,7 @@ class MainWindow(QMainWindow): self.inventory_page._run() def _update_recording(self) -> None: - from .core import diagnostic + from ..core import diagnostic status = diagnostic.active() if not status: