mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Auto/Stealth Ride Import when opening an Athlete
... import Ride Files automatically from a defined Directory per Athlete ... runs silently/without "Import Rides" Widget if the files can be imported/copied/... without error or warning ... Preferences->Athlete- defines ... the directory - per Athlete and- if the function is active at all (default is OFF) ... the error handling ... report back ALL errors and warnings by opening the RideImportWizard popup ... report back Errors and Warnings - but ignore the "File exists" warning (so that the import directory can be continously supplied with new files, without the need to remove the already imported ones)
This commit is contained in:
@@ -1387,6 +1387,7 @@ MainWindow::openWindow(QString name)
|
||||
// main window will register itself
|
||||
MainWindow *main = new MainWindow(home);
|
||||
main->show();
|
||||
main->ridesAutoImport();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1437,6 +1438,9 @@ MainWindow::openTab(QString name)
|
||||
showTabbar(true);
|
||||
|
||||
setUpdatesEnabled(true);
|
||||
|
||||
// now do the automatic ride file import
|
||||
context->athlete->importFilesWithoutDialog();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1947,3 +1951,10 @@ MainWindow::addIntervals()
|
||||
currentTab->addIntervals();
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::ridesAutoImport() {
|
||||
|
||||
currentTab->context->athlete->importFilesWithoutDialog();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user