mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user