13
0

RegionFx: mark session dirty when adding/removing plugins

This commit is contained in:
Robin Gareus 2024-08-24 00:23:03 +02:00
parent e419b314a2
commit 66b3ad79c1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 7 additions and 1 deletions

View File

@ -2531,6 +2531,7 @@ AudioRegion::remove_plugin (std::shared_ptr<RegionFxPlugin> fx)
send_change (PropertyChange (Properties::region_fx)); // trigger DiskReader overwrite
}
RegionFxChanged (); /* EMIT SIGNAL */
_session.set_dirty ();
return true;
}

View File

@ -2418,7 +2418,11 @@ Region::load_plugin (ARDOUR::PluginType type, std::string const& name)
bool
Region::add_plugin (std::shared_ptr<RegionFxPlugin> rfx, std::shared_ptr<RegionFxPlugin> pos)
{
return _add_plugin (rfx, pos, false);
bool rv = _add_plugin (rfx, pos, false);
if (rv) {
_session.set_dirty ();
}
return rv;
}
void
@ -2445,6 +2449,7 @@ Region::reorder_plugins (RegionFxList const& new_order)
oiter = _plugins.erase (oiter);
}
_plugins.insert (oiter, as_it_will_be.begin (), as_it_will_be.end ());
_session.set_dirty ();
}
void