Update to current zbus

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2021-12-16 19:25:37 +04:00
parent 5f0279eb1f
commit e4df821fc2

View File

@ -201,7 +201,7 @@ mod imp {
let mut abs_changed = console.mouse.receive_is_absolute_changed().await;
MainContext::default().spawn_local(clone!(@weak widget => async move {
while let Some(abs) = abs_changed.next().await {
if let Some(abs) = abs {
if let Ok(abs) = abs.get().await {
widget.set_mouse_absolute(abs);
}
}