mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Upgrade/JSON Conversion - Switch off "Auto" Fix Tools
... add feature to switch off "Auto" Fix tools ... switch off "Auto" Fix Tools during Upgrade/JSON Conversion
This commit is contained in:
@@ -30,6 +30,8 @@ DataProcessorFactory &DataProcessorFactory::instance()
|
||||
return *instance_;
|
||||
}
|
||||
|
||||
bool DataProcessorFactory::autoprocess = true;
|
||||
|
||||
bool
|
||||
DataProcessorFactory::registerProcessor(QString name, DataProcessor *processor)
|
||||
{
|
||||
@@ -41,6 +43,9 @@ DataProcessorFactory::registerProcessor(QString name, DataProcessor *processor)
|
||||
bool
|
||||
DataProcessorFactory::autoProcess(RideFile *ride)
|
||||
{
|
||||
// check if autoProcess is allow at all
|
||||
if (!autoprocess) return false;
|
||||
|
||||
bool changed = false;
|
||||
|
||||
// run through the processors and execute them!
|
||||
|
||||
Reference in New Issue
Block a user