Compare commits
3 commits
32bf2e1187
...
5b42e921a5
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b42e921a5 | |||
| 164aa1eb83 | |||
| 632cdf5176 |
4 changed files with 7 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -249,6 +249,7 @@ class StatisticsDialog(QDialog):
|
|||
|
||||
self.setWindowTitle(strings._("statistics"))
|
||||
self.setMinimumWidth(600)
|
||||
self.setMinimumHeight(400)
|
||||
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:
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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 <mig@mig5.net>"]
|
||||
readme = "README.md"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue