mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-26 06:21:58 +00:00
calculate last event diff
This commit is contained in:
parent
f7b2bbc432
commit
b7496933c7
@ -245,12 +245,14 @@ impl Dialog for PreferencesDialog {
|
||||
.title(n)
|
||||
.build(),
|
||||
);
|
||||
for e in &info.event[1..] {
|
||||
for (i, e) in info.event[1..].iter().enumerate() {
|
||||
g.add(
|
||||
&ActionRow::builder()
|
||||
.use_markup(true)
|
||||
.subtitle(gformat!(
|
||||
"{} ms",
|
||||
e.time().difference(t).as_milliseconds()
|
||||
"{} <sup>+{}</sup> ms",
|
||||
e.time().difference(t).as_milliseconds(),
|
||||
e.time().difference(info.event[i].time()).as_milliseconds(),
|
||||
))
|
||||
.subtitle_selectable(true)
|
||||
.title_selectable(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user