Images chart update on image drop and import

Image import notifies rideMetadataChanged for the item
Python chart re-evaluates the script on item changes
This commit is contained in:
Alejandro Martinez
2024-04-26 20:38:26 -03:00
parent fdb6d17952
commit 62993743d9
2 changed files with 3 additions and 0 deletions

View File

@@ -362,6 +362,7 @@ PythonChart::PythonChart(Context *context, bool ridesummary) : GcChartWindow(con
if (ridesummary) {
connect(this, SIGNAL(rideItemChanged(RideItem*)), this, SLOT(runScript()));
connect(context, SIGNAL(rideChanged(RideItem*)), this, SLOT(runScript()));
// refresh when comparing
connect(context, SIGNAL(compareIntervalsStateChanged(bool)), this, SLOT(runScript()));

View File

@@ -1665,6 +1665,8 @@ RideItem::addImage(QString filename)
// make sure it gets saved !
setDirty(true);
// lets others know metadata has changed
notifyRideMetadataChanged();
return true;
}
return false;