Compare commits

..

3 commits

Author SHA1 Message Date
5b42e921a5
0.4.5
All checks were successful
CI / test (push) Successful in 4m27s
Lint / test (push) Successful in 31s
Trivy / test (push) Successful in 23s
2025-11-24 15:42:25 +11:00
164aa1eb83
Undo statistics dialog tweak and just add more height.. Fix exception handling in version check 2025-11-24 15:36:14 +11:00
632cdf5176
Revert "More tweaks to statistics dialog size"
This reverts commit 4ec8c64994.
2025-11-24 15:19:15 +11:00
4 changed files with 7 additions and 13 deletions

View file

@ -3,6 +3,7 @@
* Make it possible to delete revisions * Make it possible to delete revisions
* Make it possible to force-lock the screen even if idle timer hasn't tripped * Make it possible to force-lock the screen even if idle timer hasn't tripped
* Add shortcuts for lock and unlock of screen * Add shortcuts for lock and unlock of screen
* Other misc bug fixes
# 0.4.4.1 # 0.4.4.1

View file

@ -249,6 +249,7 @@ class StatisticsDialog(QDialog):
self.setWindowTitle(strings._("statistics")) self.setWindowTitle(strings._("statistics"))
self.setMinimumWidth(600) self.setMinimumWidth(600)
self.setMinimumHeight(400)
root = QVBoxLayout(self) root = QVBoxLayout(self)
( (
@ -324,16 +325,10 @@ class StatisticsDialog(QDialog):
self._revisions_by_date = revisions_by_date self._revisions_by_date = revisions_by_date
scroll = QScrollArea() scroll = QScrollArea()
scroll.setWidgetResizable(False) scroll.setWidgetResizable(True)
scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded) scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self._heatmap.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
scroll.setWidget(self._heatmap) 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) group_layout.addWidget(scroll)
root.addWidget(group) root.addWidget(group)
@ -344,8 +339,6 @@ class StatisticsDialog(QDialog):
else: else:
root.addWidget(QLabel(strings._("stats_no_data"))) root.addWidget(QLabel(strings._("stats_no_data")))
self.adjustSize()
# ---------- internal helpers ---------- # ---------- internal helpers ----------
def _apply_metric(self, metric: str) -> None: def _apply_metric(self, metric: str) -> None:

View file

@ -144,7 +144,7 @@ class VersionChecker:
QMessageBox.warning( QMessageBox.warning(
self._parent, self._parent,
strings._("update"), strings._("update"),
strings._("could_not_check_for_updates") + e, strings._("could_not_check_for_updates") + str(e),
) )
return return
@ -320,7 +320,7 @@ class VersionChecker:
QMessageBox.critical( QMessageBox.critical(
self._parent, self._parent,
strings._("update"), strings._("update"),
strings._("failed_to_download_update") + e, strings._("failed_to_download_update") + str(e),
) )
return return
@ -334,7 +334,7 @@ class VersionChecker:
QMessageBox.critical( QMessageBox.critical(
self._parent, self._parent,
strings._("update"), 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 # On failure, delete the downloaded files for safety
for p in (appimage_path, sig_path): for p in (appimage_path, sig_path):

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "bouquin" 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." description = "Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher."
authors = ["Miguel Jacq <mig@mig5.net>"] authors = ["Miguel Jacq <mig@mig5.net>"]
readme = "README.md" readme = "README.md"