tiny performance improvement in parking mapper

This commit is contained in:
Dustin Carlino 2020-08-07 14:14:50 -07:00
parent e35c69f6f3
commit 3b8a0e4edc

View File

@ -265,7 +265,7 @@ impl State for ParkingMapper {
self.composite
.replace(ctx, "info", txt.draw(ctx).named("info"));
}
} else {
} else if self.selected.is_some() {
self.selected = None;
self.composite
.replace(ctx, "info", "Select a road".draw_text(ctx).named("info"));