Use default Overview configuration when replacing old Summary charts

They are likely more useful for existing users and, hopefully,
they will produce less user complains than blank Summary charts.
This commit is contained in:
Alejandro Martinez
2022-09-26 21:35:23 -03:00
parent 6b15b7e50e
commit b43723e8ff

View File

@@ -240,14 +240,14 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
// summary and old ride summary charts now replaced with an Overview - note id gets reset
case GcWindowTypes::Summary:
case GcWindowTypes::RideSummary:
case GcWindowTypes::Overview: returning = new OverviewWindow(context, ANALYSIS); id=GcWindowTypes::Overview; break;
case GcWindowTypes::Overview: returning = new OverviewWindow(context, ANALYSIS); if (id != GcWindowTypes::Overview) { id=GcWindowTypes::Overview; static_cast<OverviewWindow*>(returning)->setConfiguration(""); } break;
// blank analysis overview - note id gets reset
case GcWindowTypes::OverviewAnalysisBlank: returning = new OverviewWindow(context, ANALYSIS, true); id=GcWindowTypes::Overview; break;
// old summary now gets a trends overview - note id gets reset
case GcWindowTypes::DateRangeSummary: // deprecated so now replace with overview
case GcWindowTypes::OverviewTrends: returning = new OverviewWindow(context, TRENDS); id=GcWindowTypes::OverviewTrends; break;
case GcWindowTypes::OverviewTrends: returning = new OverviewWindow(context, TRENDS); if (id != GcWindowTypes::OverviewTrends) { id=GcWindowTypes::OverviewTrends; static_cast<OverviewWindow*>(returning)->setConfiguration(""); } break;
// blank trends overview - note id gets reset
case GcWindowTypes::OverviewTrendsBlank: returning = new OverviewWindow(context, TRENDS, true); id=GcWindowTypes::OverviewTrends; break;