use relm4::gtk; use crate::AppModel; /// Toggles between horizontal and vertical layout orientation. pub fn change_orientation(model: &mut AppModel) { model.orientation = match model.orientation { gtk::Orientation::Horizontal => gtk::Orientation::Vertical, _ => gtk::Orientation::Horizontal, }; } /// Updates the selected stage type from dropdown selection. pub fn stage_type_selected(model: &mut AppModel, index: usize) { if index < model.available_stage_types.len() { model.stage_type = model.available_stage_types[index].clone(); model.update_image(); } }