Fix history pane, some small cleanups

This commit is contained in:
Miguel Jacq 2025-11-09 19:09:56 +11:00
parent f023224074
commit ab1af80d10
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
12 changed files with 47 additions and 114 deletions

View file

@ -808,7 +808,7 @@ class MainWindow(QMainWindow):
def _adjust_today(self):
"""Jump to today."""
today = QDate.currentDate()
self.calendar.setSelectedDate(today)
self._create_new_tab(today)
def _load_yesterday_todos(self):
try:
@ -1090,7 +1090,7 @@ If you want an encrypted backup, choose Backup instead of Export.
elif selected_filter.startswith("SQL"):
self.db.export_sql(filename)
else:
self.db.export_by_extension(filename)
raise ValueError("Unrecognised extension!")
QMessageBox.information(self, "Export complete", f"Saved to:\n{filename}")
except Exception as e: