mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Simplify Panel::wrap_needs_relayout
This commit is contained in:
parent
8d3be52927
commit
38fdcc7bf8
@ -120,7 +120,6 @@ impl<V: View> ViewWrapper for Panel<V> {
|
||||
}
|
||||
|
||||
fn wrap_needs_relayout(&self) -> bool {
|
||||
self.invalidated
|
||||
|| self.with_view(|v| v.needs_relayout()).unwrap_or(true)
|
||||
self.invalidated || self.view.needs_relayout()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user