From c1d6e3f7fdf528558a35ca906efed6343fb1caa7 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Tue, 2 Jan 2024 08:37:10 -0800 Subject: [PATCH] Fixed Switcher widget This was broken in unreleased changes, hence no changelog update. --- src/widgets/switcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/switcher.rs b/src/widgets/switcher.rs index 17ac2ee..422e1b6 100644 --- a/src/widgets/switcher.rs +++ b/src/widgets/switcher.rs @@ -55,7 +55,7 @@ impl WrapperWidget for Switcher { context: &mut LayoutContext<'_, '_, '_, '_, '_>, ) -> Size { if self.source.has_updated() { - self.child.unmount_in(context); + self.child = WidgetRef::new(self.source.get()); } context.invalidate_when_changed(&self.source); available_space