Skip to content

Commit 0ccc8dd

Browse files
committed
fix: stats not shown when live preview activated in adcvance
1 parent 8f0caac commit 0ccc8dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ORStools/gui/ORStoolsDialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ def format_duration(hours: float) -> str:
470470
m = int((hours - h) * 60)
471471
return f"{h:02d}:{m:02d}"
472472

473+
self.set_live_preview_stats_visibility(self.toggle_preview.isChecked())
473474
self.live_duration.setText(f"{format_duration(duration)} h")
474475
self.live_distance.setText(f"{distance} km")
475476

0 commit comments

Comments
 (0)