This commit is contained in:
Miguel Jacq 2025-11-10 17:43:12 +11:00
parent 61e37b7669
commit 1c0052a0cf
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
4 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,8 @@
# 0.2.1.5
* Go back to font size 10 (I might add a switcher later)
* Fix bug with not syncing the right calendar date on search (History item would then be wrong too)
# 0.2.1.4 # 0.2.1.4
* Increase font size of normal text * Increase font size of normal text

View file

@ -758,7 +758,6 @@ class MainWindow(QMainWindow):
tb.numbersRequested.connect(self._tb_numbers) tb.numbersRequested.connect(self._tb_numbers)
tb.checkboxesRequested.connect(self._tb_checkboxes) tb.checkboxesRequested.connect(self._tb_checkboxes)
# these arent editor methods
tb.historyRequested.connect(self._open_history) tb.historyRequested.connect(self._open_history)
tb.insertImageRequested.connect(self._on_insert_image) tb.insertImageRequested.connect(self._on_insert_image)
@ -812,6 +811,10 @@ class MainWindow(QMainWindow):
date_iso = self._current_date_iso() date_iso = self._current_date_iso()
qd = QDate.fromString(date_iso, "yyyy-MM-dd") qd = QDate.fromString(date_iso, "yyyy-MM-dd")
# Keep calendar in sync
with QSignalBlocker(self.calendar):
self.calendar.setSelectedDate(qd)
self._load_date_into_editor(qd, extra_data) self._load_date_into_editor(qd, extra_data)
self.editor.current_date = qd self.editor.current_date = qd
@ -948,7 +951,11 @@ class MainWindow(QMainWindow):
# ----------- History handler ------------# # ----------- History handler ------------#
def _open_history(self): def _open_history(self):
date_iso = self._current_date_iso() if hasattr(self.editor, "current_date"):
date_iso = self.editor.current_date.toString("yyyy-MM-dd")
else:
date_iso = self._current_date_iso()
dlg = HistoryDialog(self.db, date_iso, self) dlg = HistoryDialog(self.db, date_iso, self)
if dlg.exec() == QDialog.Accepted: if dlg.exec() == QDialog.Accepted:
# refresh editor + calendar (head pointer may have changed) # refresh editor + calendar (head pointer may have changed)

View file

@ -264,7 +264,7 @@ class MarkdownEditor(QTextEdit):
# Normal text # Normal text
font = QFont() font = QFont()
font.setPointSize(11) font.setPointSize(10)
self.setFont(font) self.setFont(font)
# Install syntax highlighter # Install syntax highlighter

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "bouquin" name = "bouquin"
version = "0.2.1.4" version = "0.2.1.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"