Calendar not immediately deleted when the calendar management page is closed before the undoable overlay times out
Affected version
Tested with GNOME Calendar 47.beta on Arch Linux.
Bug summary
When deleting a calendar, a toast allows the user to undo the deletion. The calendar is fully deleted only when the toast is manually dismissed or after a timeout. If the user closes the window without dismissing the toast, they still have to wait until the timeout to see the calendar disappear.
Steps to reproduce
- Delete a calendar through the calendar management page.
- Quickly close the window without dismissing the toast.
- Open the "Calendar" popover.
Alternatively:
- Delete a calendar through the calendar management page.
- Quickly close the window without dismissing the toast.
- Edit any event, then click on the popover in the header bar to change the calendar it belongs to.
What happened
With both manipulations, the deleted calendar is still here and will disappear after a few seconds.
What did you expect to happen
The calendar shouldn't appear in those lists.