calculate last event diff

This commit is contained in:
yggverse 2025-03-24 08:22:15 +02:00
parent f7b2bbc432
commit b7496933c7

View File

@ -245,12 +245,14 @@ impl Dialog for PreferencesDialog {
.title(n) .title(n)
.build(), .build(),
); );
for e in &info.event[1..] { for (i, e) in info.event[1..].iter().enumerate() {
g.add( g.add(
&ActionRow::builder() &ActionRow::builder()
.use_markup(true)
.subtitle(gformat!( .subtitle(gformat!(
"{} ms", "{} <sup>+{}</sup> ms",
e.time().difference(t).as_milliseconds() e.time().difference(t).as_milliseconds(),
e.time().difference(info.event[i].time()).as_milliseconds(),
)) ))
.subtitle_selectable(true) .subtitle_selectable(true)
.title_selectable(true) .title_selectable(true)