mirror of
https://github.com/a-b-street/abstreet.git
synced 2025-01-01 19:04:50 +03:00
update drawn problems when switching before/after
This commit is contained in:
parent
11a49e7c55
commit
cba8ba761b
@ -879,7 +879,13 @@ fn make_trip_details(
|
||||
col.push("Map edits have disconnected the path taken before".text_widget(ctx));
|
||||
}
|
||||
col.extend(elevation);
|
||||
draw_problems(ctx, app, details, trip_id);
|
||||
|
||||
let analytics = if app.has_prebaked().is_none() || open_trip.show_after {
|
||||
app.primary.sim.get_analytics()
|
||||
} else {
|
||||
app.prebaked()
|
||||
};
|
||||
draw_problems(ctx, app, analytics, details, trip_id);
|
||||
Widget::col(col)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user