This commit is contained in:
2026-02-18 16:49:59 -05:00
parent dab6cf298a
commit 426ff0adfc
4 changed files with 46 additions and 3 deletions

View File

@@ -30,8 +30,10 @@ impl Widget for WidgetPtr {
}
impl WidgetPtr {
pub fn new() -> Self {
Self::default()
pub fn new(widget: StrongWidget) -> Self {
Self {
inner: Some(widget),
}
}
pub fn empty() -> Self {
Self {