From 632cdf5176cadc9e31be872c646880673756b419 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 24 Nov 2025 15:19:15 +1100 Subject: [PATCH 1/3] Revert "More tweaks to statistics dialog size" This reverts commit 4ec8c649946be8307a6b10bf813b6bee762ebe45. --- bouquin/statistics_dialog.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bouquin/statistics_dialog.py b/bouquin/statistics_dialog.py index 4950b6a..f6898e0 100644 --- a/bouquin/statistics_dialog.py +++ b/bouquin/statistics_dialog.py @@ -249,6 +249,7 @@ class StatisticsDialog(QDialog): self.setWindowTitle(strings._("statistics")) self.setMinimumWidth(600) + self.setMinimumHeight(350) root = QVBoxLayout(self) ( @@ -324,16 +325,10 @@ class StatisticsDialog(QDialog): self._revisions_by_date = revisions_by_date scroll = QScrollArea() - scroll.setWidgetResizable(False) + scroll.setWidgetResizable(True) scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) - self._heatmap.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) scroll.setWidget(self._heatmap) - - # ensure the scroll area is never shorter than the heatmap's preferred height - scroll.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) - scroll.setMinimumHeight(self._heatmap.minimumSizeHint().height()) - group_layout.addWidget(scroll) root.addWidget(group) @@ -344,8 +339,6 @@ class StatisticsDialog(QDialog): else: root.addWidget(QLabel(strings._("stats_no_data"))) - self.adjustSize() - # ---------- internal helpers ---------- def _apply_metric(self, metric: str) -> None: From 164aa1eb8361e92ce7211f83d7233ebc3e119365 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 24 Nov 2025 15:36:14 +1100 Subject: [PATCH 2/3] Undo statistics dialog tweak and just add more height.. Fix exception handling in version check --- bouquin/statistics_dialog.py | 2 +- bouquin/version_check.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bouquin/statistics_dialog.py b/bouquin/statistics_dialog.py index f6898e0..659f79f 100644 --- a/bouquin/statistics_dialog.py +++ b/bouquin/statistics_dialog.py @@ -249,7 +249,7 @@ class StatisticsDialog(QDialog): self.setWindowTitle(strings._("statistics")) self.setMinimumWidth(600) - self.setMinimumHeight(350) + self.setMinimumHeight(400) root = QVBoxLayout(self) ( diff --git a/bouquin/version_check.py b/bouquin/version_check.py index afbc409..a57e125 100644 --- a/bouquin/version_check.py +++ b/bouquin/version_check.py @@ -144,7 +144,7 @@ class VersionChecker: QMessageBox.warning( self._parent, strings._("update"), - strings._("could_not_check_for_updates") + e, + strings._("could_not_check_for_updates") + str(e), ) return @@ -320,7 +320,7 @@ class VersionChecker: QMessageBox.critical( self._parent, strings._("update"), - strings._("failed_to_download_update") + e, + strings._("failed_to_download_update") + str(e), ) return @@ -334,7 +334,7 @@ class VersionChecker: QMessageBox.critical( self._parent, strings._("update"), - strings._("could_not_read_bundled_gpg_public_key") + e, + strings._("could_not_read_bundled_gpg_public_key") + str(e), ) # On failure, delete the downloaded files for safety for p in (appimage_path, sig_path): From 5b42e921a5afa3ef7863c8df30e1b827266a9254 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 24 Nov 2025 15:42:25 +1100 Subject: [PATCH 3/3] 0.4.5 --- CHANGELOG.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fadcc5f..62dc1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Make it possible to delete revisions * Make it possible to force-lock the screen even if idle timer hasn't tripped * Add shortcuts for lock and unlock of screen + * Other misc bug fixes # 0.4.4.1 diff --git a/pyproject.toml b/pyproject.toml index e22d6aa..7e95f82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bouquin" -version = "0.4.4.1" +version = "0.4.5" description = "Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher." authors = ["Miguel Jacq "] readme = "README.md"