From 5223f2e77b94f29d362fbd7a2b2ff7ba08eba4fb Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Thu, 5 Dec 2024 21:44:29 +0200 Subject: [PATCH] Make placing dialog state-scoped --- ui/src/menu/editor_menu.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/menu/editor_menu.rs b/ui/src/menu/editor_menu.rs index 4dac8844..f77871a0 100644 --- a/ui/src/menu/editor_menu.rs +++ b/ui/src/menu/editor_menu.rs @@ -491,7 +491,10 @@ fn setup_place_family_dialog( ) { info!("showing placing dialog"); parent - .spawn(DialogBundle::new(theme)) + .spawn(( + DialogBundle::new(theme), + StateScoped(WorldState::FamilyEditor), + )) .with_children(|parent| { parent .spawn(NodeBundle {