- Project panel Clear (#95's focus routing) goes through invoke, so deleting items that compositions use still asks first (M3.16). - ui_project_delete: let a dialog finish egui::Modal's sizing frame before clicking its buttons (#95 moved dialogs to egui::Modal). - #71's i18n / theme tests clear the frame's texture delta; egui asserts on unhandled deltas in debug builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
dc96725725
commit
d4e310b252
@@ -211,7 +211,8 @@ pub fn invoke(app: &mut EffectcraftApp, ctx: &egui::Context, id: &str, params: V
|
||||
}
|
||||
// Clear follows panel focus, including the Edit menu and keyboard shortcut.
|
||||
if id == "edit.clear" && params.as_object().is_some_and(|p| p.is_empty()) && app.ui.focused == PanelKind::Project {
|
||||
return run_engine(app, ctx, "project.delete", json!({}));
|
||||
// Through `invoke`, so deleting items that compositions use still asks first (M3.16).
|
||||
return invoke(app, ctx, "project.delete", json!({}));
|
||||
}
|
||||
if id == "edit.clear" && params.as_object().is_some_and(|p| p.is_empty()) && app.ui.focused == PanelKind::RenderQueue {
|
||||
let selected = ctx.data(|d| d.get_temp::<(Vec<u64>, Option<u64>)>(egui::Id::new("rq-ui"))).and_then(|(_, id)| id);
|
||||
|
||||
Reference in New Issue
Block a user