v0.5.10: Check Alive/BASIC fixes, UX improvements, Raw-Date handling.

This commit is contained in:
2026-07-05 09:03:57 +00:00
parent 4c81290954
commit 527ae95c75
5 changed files with 229 additions and 88 deletions

View File

@@ -47,13 +47,24 @@ class BalCalendarButton(QToolButton):
# ------------------------------------------------------------------ #
def _ensure_ics(self):
"""Generate the .ics content and cache the temp file path."""
"""Generate the .ics content and cache the temp file path.
If the provider returns no content because there are no reminder events
to save (the delivery date is too close or already passed), warn the
user and do NOT create a file (ToDo #2).
"""
try:
content = self._ics_provider()
if content:
self._calendar_temp_path = BalCalendar.write_temp_ics(content)
else:
self._calendar_temp_path = None
self._bal_window.show_warning(
_(
"No reminders were saved: the delivery date is too "
"close (or already passed)"
)
)
except Exception as e:
_logger.error(f"failed to generate .ics: {e}")
self._calendar_temp_path = None