mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add missed initial event pulse
This commit is contained in:
parent
11fecd9cf1
commit
1b8bfe2f73
1 changed files with 5 additions and 1 deletions
|
|
@ -42,7 +42,11 @@ impl Item {
|
||||||
pub fn close(&mut self) {
|
pub fn close(&mut self) {
|
||||||
match self.closed {
|
match self.closed {
|
||||||
Some(ref mut closed) => closed.pulse(),
|
Some(ref mut closed) => closed.pulse(),
|
||||||
None => self.closed = Some(Event::new()),
|
None => {
|
||||||
|
let mut event = Event::new();
|
||||||
|
event.pulse();
|
||||||
|
self.closed = Some(event)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue