Saving of Interval data

14 views
Skip to first unread message

Paul J

unread,
Jul 2, 2025, 3:30:39 AM7/2/25
to golden-cheetah-developers
I'm working on the metadata tile to display interval metadata, and see the following code/comment at the bottom of the FormField::editFinished() function (see below)

Is it the intention not to store the user entered interval data by default? I have tested this, and interval data can be entered (and will be saved) providing another data item is updated so that the ride is marked as dirty. Otherwise the user enters interval data, is not reminded to save the ride, and the input is lost.


void FormField::editFinished()
{

..........
..........

    // update everything, because metric changes like CP
    // need to flush through. For interval metadata we
    // don't force a recalculation since its counter-productive
    // user can save the activity if they really want the changes
    // to be reflected now

    if (changed && definition.interval == false) {

        // we actually edited it !
        setLinkedDefault(text);

        // and update !
        ourRideItem->notifyRideMetadataChanged();

        // rideFile is now dirty!
        ourRideItem->setDirty(true);
    }
    meta->active = active = false;
}

Ale Martinez

unread,
Jul 2, 2025, 1:17:18 PM7/2/25
to golden-cheetah-developers
El miércoles, 2 de julio de 2025 a la(s) 4:30:39 a.m. UTC-3, Paul J escribió:
I'm working on the metadata tile to display interval metadata, and see the following code/comment at the bottom of the FormField::editFinished() function (see below)

Is it the intention not to store the user entered interval data by default?

The comment seems to indicate otherwise but I don't know Mark's intentions, all we have about this feature is in https://github.com/GoldenCheetah/GoldenCheetah/issues/4418

Paul J

unread,
Jul 5, 2025, 8:51:22 AM7/5/25
to golden-cheetah-developers
I'll wait for Mark's views before continuing with the Metadata tile displaying the selected interval.
Reply all
Reply to author
Forward
0 new messages