mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update init count
This commit is contained in:
parent
1b8bfe2f73
commit
0f9e864173
2 changed files with 2 additions and 6 deletions
|
|
@ -42,11 +42,7 @@ 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 => {
|
None => self.closed = Some(Event::new()),
|
||||||
let mut event = Event::new();
|
|
||||||
event.pulse();
|
|
||||||
self.closed = Some(event)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ impl Event {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
time: now(),
|
time: now(),
|
||||||
count: 0,
|
count: 1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue