Add captured Scenario group removal and aggregate impact review

This commit is contained in:
2026-09-24 18:38:05 -07:00
parent cdd5a0462b
commit ed6eaaa73e
13 changed files with 1975 additions and 5 deletions
+11 -1
View File
@@ -2144,11 +2144,21 @@ impl canvas::Program<Message> for Scene {
&& tool == CanvasTool::Select
&& (modifiers.is_empty() || *modifiers == iced::keyboard::Modifiers::SHIFT)
&& state.press.is_none()
&& state.group_press.is_none()
&& state.source.is_none() =>
{
let context = context?;
if self.is_group() {
return self.selection_action(Intent::Refuse("Removing multiple Scenario objects is being implemented; select one occurrence to remove it".into()));
let (_, snapshot) = self.selection.as_ref()?;
return Some(
Action::publish(Message::ScenarioRemoval(Box::new(
crate::app::scenario_removal::Event::Begin {
context,
snapshot: snapshot.clone(),
},
)))
.and_capture(),
);
}
if self.removal_target(context.scenario, self.selected) {
return Some(