backend: store damaged state in ConnectorData
This commit is contained in:
parent
7ff7edaa8f
commit
ada4e5a5f0
7 changed files with 33 additions and 16 deletions
|
|
@ -272,6 +272,10 @@ impl MetalConnector {
|
|||
self.can_present.set(false);
|
||||
if let Some(latched) = latched {
|
||||
self.has_damage.fetch_sub(latched.damage);
|
||||
node.global
|
||||
.connector
|
||||
.damaged
|
||||
.set(self.has_damage.is_not_zero());
|
||||
}
|
||||
self.cursor_changed.set(false);
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue