After adding an event to an invisible calendar, provide a notification overlay toast that allows unhiding / showing the hidden calendar in the view
When a new event gets added to a hidden calendar (from the Event Editor dialog as per #950, or the .ics file importer as per #1184), it would be extra nice if we could show an AdwToast
toast notification overlay with action button, saying something like:
Your event has been added to "
%s
", which is currently hidden. [ Show calendar ]
Where %s
is the hidden calendar's name, and the "Show calendar" button allows conveniently turning on the visibility of that calendar.
This toast could be shown for 5 seconds (same as the Undo toast that shows up just after deleting an event), or a bit longer (7 seconds? 10 seconds?) to give time for people to read it, since letting it linger a bit longer than a "pending event deletion" is not really a problem.
Coding hints: look at...
- the existing toast used when deleting events, in
on_event_editor_dialog_remove_event_cb
ingcal_window.c
-
on_event_removed
vson_event_created
ingcal-manager.c