nav: hide ETA on destination reached

old-commit-hash: 35a5aae334e2409c432499a868fae69bd6ceb285
This commit is contained in:
Willem Melching
2021-07-09 11:28:53 +02:00
parent 8155c856f8
commit 0c30fbbe62
+5
View File
@@ -716,6 +716,11 @@ MapETA::MapETA(QWidget * parent) : QWidget(parent) {
void MapETA::updateETA(float s, float s_typical, float d) {
if (d < MANEUVER_TRANSITION_THRESHOLD) {
hide();
return;
}
// ETA
auto eta_time = QDateTime::currentDateTime().addSecs(s).time();
if (params.getBool("NavSettingTime24h")) {