mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +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:
@@ -1203,14 +1203,9 @@ MainWindow::setCriticalPower(int cp)
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::tabChanged(int index)
|
||||
MainWindow::tabChanged(int)
|
||||
{
|
||||
criticalPowerWindow->setActive(tabWidget->widget(index) == criticalPowerWindow);
|
||||
performanceManagerWindow->setActive(tabWidget->widget(index) == performanceManagerWindow);
|
||||
ltmWindow->setActive(tabWidget->widget(index) == ltmWindow);
|
||||
#ifdef GC_HAVE_QWTPLOT3D
|
||||
modelWindow->setActive(tabWidget->widget(index) == modelWindow);
|
||||
#endif
|
||||
rideSelected();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user