mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Save <UI> state for plugins only.
Only PluginInserts have UIs and PinMgs and unique IDs. Other processors may not be saved explicitly, [re-]created dynamically, change ID (eg. capturing processor) and clutter up the list. TODO: removing a processor should also remove its UI state.
This commit is contained in:
parent
4c1feac16e
commit
0c59ba649e
1 changed files with 9 additions and 20 deletions
|
|
@ -2627,28 +2627,14 @@ ProcessorBox::maybe_add_processor_to_ui_list (boost::weak_ptr<Processor> w)
|
||||||
if (p->window_proxy()) {
|
if (p->window_proxy()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!boost::dynamic_pointer_cast<PluginInsert> (p)) {
|
||||||
/* not on the list; add it */
|
return;
|
||||||
|
|
||||||
string loc;
|
|
||||||
#if 0 // is this still needed? Why?
|
|
||||||
if (_parent_strip) {
|
|
||||||
if (_parent_strip->mixer_owned()) {
|
|
||||||
loc = X_("M");
|
|
||||||
} else {
|
|
||||||
loc = X_("R");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
loc = X_("P");
|
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
loc = X_("P");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ProcessorWindowProxy* wp = new ProcessorWindowProxy (
|
ProcessorWindowProxy* wp = new ProcessorWindowProxy (
|
||||||
string_compose ("%1-%2-%3", loc, _route->id(), p->id()),
|
string_compose ("P-%1-%2", _route->id(), p->id()),
|
||||||
this,
|
this,
|
||||||
w);
|
w);
|
||||||
|
|
||||||
const XMLNode* ui_xml = _session->extra_xml (X_("UI"));
|
const XMLNode* ui_xml = _session->extra_xml (X_("UI"));
|
||||||
|
|
||||||
|
|
@ -2667,9 +2653,12 @@ ProcessorBox::maybe_add_processor_pin_mgr (boost::weak_ptr<Processor> w)
|
||||||
if (!p || p->pinmgr_proxy ()) {
|
if (!p || p->pinmgr_proxy ()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!boost::dynamic_pointer_cast<PluginInsert> (p)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PluginPinWindowProxy* wp = new PluginPinWindowProxy (
|
PluginPinWindowProxy* wp = new PluginPinWindowProxy (
|
||||||
string_compose ("PM-%2-%3", _route->id(), p->id()), w);
|
string_compose ("PM-%1-%2", _route->id(), p->id()), w);
|
||||||
wp->set_session (_session);
|
wp->set_session (_session);
|
||||||
|
|
||||||
const XMLNode* ui_xml = _session->extra_xml (X_("UI"));
|
const XMLNode* ui_xml = _session->extra_xml (X_("UI"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue