mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Train View - Auto select matching media and videosync files
When a workout file is selected. Fixes #3886
This commit is contained in:
@@ -811,6 +811,18 @@ TrainSidebar::workoutTreeWidgetSelectionChanged()
|
||||
ergFileQueryAdapter.setErgFile(ergFile);
|
||||
adjustIntensity(100);
|
||||
setLabels();
|
||||
|
||||
#if !defined GC_VIDEO_NONE
|
||||
// Try to select matching media and videosync files
|
||||
QString workoutName = QFileInfo(filename).baseName();
|
||||
mediaTree->setFocus();
|
||||
mediaTree->keyboardSearch(workoutName);
|
||||
#ifdef GC_HAVE_VLC // RLV currently only support for VLC
|
||||
videosyncTree->setFocus();
|
||||
videosyncTree->keyboardSearch(workoutName);
|
||||
#endif
|
||||
workoutTree->setFocus();
|
||||
#endif
|
||||
} else {
|
||||
|
||||
// couldn't parse fall back to ERG mode
|
||||
|
||||
Reference in New Issue
Block a user