mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
update init count
This commit is contained in:
parent
1b8bfe2f73
commit
0f9e864173
@ -42,11 +42,7 @@ impl Item {
|
||||
pub fn close(&mut self) {
|
||||
match self.closed {
|
||||
Some(ref mut closed) => closed.pulse(),
|
||||
None => {
|
||||
let mut event = Event::new();
|
||||
event.pulse();
|
||||
self.closed = Some(event)
|
||||
}
|
||||
None => self.closed = Some(Event::new()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ impl Event {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
time: now(),
|
||||
count: 0,
|
||||
count: 1,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user