event-editor/schedule-section: Set visible child name based on schedule type

This fixes a bug introduced by
https://gitlab.gnome.org/GNOME/gnome-calendar/-/commit/8bbaeb754b6b5b81e92173508ef20888d7c421a8
which forgot to update the page depending on the schedule type.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/499>
This commit is contained in:
Hari Rana
2026-06-26 09:48:54 -04:00
parent ec5489b263
commit 3219b98b1b
@@ -264,6 +264,9 @@ update_widgets (GcalScheduleSection *self,
g_signal_handlers_block_by_func (self->until_date_selector, on_until_date_changed_cb, self);
block_date_signals (self);
adw_view_stack_set_visible_child_name (self->schedule_type_stack,
state->schedule_type_all_day ? "all-day" : "time-slot");
gcal_date_time_chooser_set_time_format (self->start_date_time_chooser, state->time_format);
gcal_date_time_chooser_set_time_format (self->end_date_time_chooser, state->time_format);