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 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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):
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue