Fix hysteresis configuration

Default is 3m and minimum value 0.1m enforced in
metric code, so lets reflect that in comments
and edit range
This commit is contained in:
Alejandro Martinez
2025-01-29 16:32:36 -03:00
parent 2ad79afe0f
commit 95315fd8e7

View File

@@ -140,12 +140,12 @@ GeneralPage::GeneralPage(Context *context) : context(context)
// Elevation hysterisis GC_ELEVATION_HYSTERISIS
QVariant elevationHysteresis = appsettings->value(this, GC_ELEVATION_HYSTERESIS);
if (elevationHysteresis.isNull() || elevationHysteresis.toFloat() == 0.0)
elevationHysteresis.setValue(3.0); // default is 1 meter
elevationHysteresis.setValue(3.0); // default is 3 meters
hystedit = new QDoubleSpinBox();
hystedit->setDecimals(1);
hystedit->setSingleStep(0.1);
hystedit->setRange(0, 10);
hystedit->setRange(0.1, 10); // minimum value is enforced in metric code
hystedit->setSuffix(" " + tr("m"));
hystedit->setValue(elevationHysteresis.toFloat());