fix(menu inner): avoid unnecessary panic in debug builds.

This commit is contained in:
Ashley Wulber 2025-06-11 11:03:14 -04:00 committed by Ashley Wulber
parent 3f4a50ee2c
commit 4c6061d40a

View file

@ -1161,7 +1161,6 @@ pub(super) fn init_root_menu<Message: Clone>(
break;
}
}
debug_assert!(set, "Root not set");
});
}
@ -1242,8 +1241,6 @@ pub(super) fn init_root_popup_menu<Message>(
// Hack to ensure menu opens properly
shell.invalidate_layout();
// non tree buttons arent active?
debug_assert!(set, "Root popup menu state was not set.");
});
}