mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Metric override icon incorrectly displayed in Trends Overview (#4684)
This commit is contained in:
@@ -850,8 +850,10 @@ MetricOverviewItem::configChanged(qint32) {
|
||||
RideMetricFactory& factory = RideMetricFactory::instance();
|
||||
metric = factory.rideMetric(symbol);
|
||||
|
||||
// Only display the override option for metrics that exist.
|
||||
setShowEdit(metric != nullptr);
|
||||
// Only display the override option for metrics that exist, and those related to specific activities.
|
||||
// It doesn't make sense to overide metrics related to multiple activities, date ranges and/or filters.
|
||||
setShowEdit((metric != nullptr) && (parent->scope == OverviewScope::ANALYSIS));
|
||||
|
||||
units = (metric) ? metric->units(GlobalContext::context()->useMetricUnits) : "";
|
||||
|
||||
// Update the value and override status
|
||||
|
||||
Reference in New Issue
Block a user