mirror of
https://github.com/danbulant/cushy
synced 2026-07-05 11:10:34 +00:00
Fixed Switcher widget
This was broken in unreleased changes, hence no changelog update.
This commit is contained in:
parent
36d4239df5
commit
c1d6e3f7fd
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ impl WrapperWidget for Switcher {
|
||||||
context: &mut LayoutContext<'_, '_, '_, '_, '_>,
|
context: &mut LayoutContext<'_, '_, '_, '_, '_>,
|
||||||
) -> Size<ConstraintLimit> {
|
) -> Size<ConstraintLimit> {
|
||||||
if self.source.has_updated() {
|
if self.source.has_updated() {
|
||||||
self.child.unmount_in(context);
|
self.child = WidgetRef::new(self.source.get());
|
||||||
}
|
}
|
||||||
context.invalidate_when_changed(&self.source);
|
context.invalidate_when_changed(&self.source);
|
||||||
available_space
|
available_space
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue