Restart RideCache refresh on Config changes

.. need to restart any in-progress refresh if you change
   config that affects it whilst it is running !
This commit is contained in:
Mark Liversedge
2015-01-07 15:08:41 +00:00
parent 404d8c84fe
commit f5ba4743da

View File

@@ -112,6 +112,9 @@ RideCache::configChanged(qint32 what)
// will add more as they come
qint32 want = CONFIG_ATHLETE | CONFIG_ZONES | CONFIG_NOTECOLOR | CONFIG_GENERAL;
if (what & want) {
// restart !
cancel();
refresh();
}
}