Compare commits

..

No commits in common. "5b42e921a5afa3ef7863c8df30e1b827266a9254" and "32bf2e1187b4918b48807885fdd180ab7226410d" have entirely different histories.

4 changed files with 13 additions and 7 deletions

View file

@ -3,7 +3,6 @@
* 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

View file

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

View file

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

View file

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