mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-05 07:39:00 +00:00
fix: avoid using is_some_and
This commit is contained in:
parent
fc7cd9a949
commit
d53ed46e46
1 changed files with 1 additions and 2 deletions
|
@ -78,8 +78,7 @@ impl SimpleComponent for DevicesBox {
|
|||
#[track = "model.changed(Self::devices())"]
|
||||
set_class_active: ("error", model.get_dev(XRDevice::Head).is_none()),
|
||||
#[track = "model.changed(Self::devices())"]
|
||||
set_class_active: ("warning", model.get_dev(XRDevice::Head)
|
||||
.is_some_and(|name| name == "Simulated HMD")),
|
||||
set_class_active: ("warning", model.get_dev_or_none(XRDevice::Head) == "Simulated HMD"),
|
||||
set_title: "Head",
|
||||
#[track = "model.changed(Self::devices())"]
|
||||
set_subtitle: match model.get_dev_or_none(XRDevice::Head).as_str() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue