Reduce size of preview. Fix jumping to the appropriate day in calendar when clicking on a search result

This commit is contained in:
Miguel Jacq 2025-11-02 10:21:42 +11:00
parent 39c0cb61da
commit baf9b41f44
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
2 changed files with 4 additions and 2 deletions

View file

@ -206,6 +206,8 @@ class MainWindow(QMainWindow):
self._dirty = False
# track which date the editor currently represents
self._active_date_iso = date_iso
qd = QDate.fromString(date_iso, "yyyy-MM-dd")
self.calendar.setSelectedDate(qd)
def _on_text_changed(self):
self._dirty = True