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:
Joern
2014-10-12 19:26:17 +02:00
parent 40556883e6
commit 809696d9b3
10 changed files with 172 additions and 5 deletions

View File

@@ -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();
}