Invalidate widget tree from Responsive widget
... by introducing a new `invalidate_widgets` method to `Shell`
This commit is contained in:
parent
90c20ac46b
commit
6ab4611a6e
8 changed files with 85 additions and 33 deletions
|
|
@ -149,7 +149,7 @@ where
|
|||
)
|
||||
});
|
||||
|
||||
local_shell.with_invalid_layout(|| shell.invalidate_layout());
|
||||
local_shell.revalidate_layout(|| shell.invalidate_layout());
|
||||
|
||||
if !local_messages.is_empty() {
|
||||
let mut component = self
|
||||
|
|
@ -375,7 +375,7 @@ where
|
|||
})
|
||||
.unwrap_or_else(|| iced_native::event::Status::Ignored);
|
||||
|
||||
local_shell.with_invalid_layout(|| shell.invalidate_layout());
|
||||
local_shell.revalidate_layout(|| shell.invalidate_layout());
|
||||
|
||||
if !local_messages.is_empty() {
|
||||
let mut component =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue