mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
combine setActive and rideSelected
And pay attention to MainWindow::activeTab, such that only the active tab redraws itself when changing rides. This change really increases GC's responsiveness when scrolling through the ride list.
This commit is contained in:
@@ -140,6 +140,8 @@ WeeklySummaryWindow::WeeklySummaryWindow(bool useMetricUnits,
|
||||
void
|
||||
WeeklySummaryWindow::refresh()
|
||||
{
|
||||
if (mainWindow->activeTab() != this)
|
||||
return;
|
||||
const RideItem *ride = mainWindow->rideItem();
|
||||
if (!ride)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user