mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Don't update intervals when metadata changes
It may be to expensive in some cases making the user interfase too slow when updating fields for little benefit, intervals are updated on save.
This commit is contained in:
@@ -584,7 +584,7 @@ bool RideItem::hasLinkedActivity() const
|
||||
}
|
||||
|
||||
void
|
||||
RideItem::refresh()
|
||||
RideItem::refresh(bool bUpdateIntervals)
|
||||
{
|
||||
if (!isstale) return;
|
||||
|
||||
@@ -685,7 +685,7 @@ RideItem::refresh()
|
||||
}
|
||||
|
||||
// Update auto intervals AFTER ridefilecache as used for bests
|
||||
updateIntervals();
|
||||
if (bUpdateIntervals) updateIntervals();
|
||||
|
||||
// update fingerprints etc, crc done above
|
||||
fingerprint = static_cast<unsigned long>(context->athlete->zones(sport)->getFingerprint(dateTime.date()))
|
||||
|
||||
@@ -223,7 +223,7 @@ class RideItem : public QObject
|
||||
bool hasLinkedActivity() const;
|
||||
|
||||
// refresh when stale
|
||||
void refresh();
|
||||
void refresh(bool bUpdateIntervals=true);
|
||||
|
||||
// get/set
|
||||
void setRide(RideFile *);
|
||||
|
||||
Reference in New Issue
Block a user