Remove LocaleGuard from Plugin::get_state
Let the plugin implementation of Plugin::add_state use a LocaleGuard if it is necessary (VST/LV2). This puts the LocaleGuards where they are required but the LocaleGuards in Session::set/get_state will mean these LocaleGuards are a noop. They are still useful for documentation purposes and in case the code is called from a non-Session context at some point.
This commit is contained in:
parent
8b10ed2478
commit
a5836e2922
@ -478,7 +478,6 @@ XMLNode &
|
||||
Plugin::get_state ()
|
||||
{
|
||||
XMLNode* root = new XMLNode (state_node_name ());
|
||||
LocaleGuard lg;
|
||||
|
||||
root->set_property (X_("last-preset-uri"), _last_preset.uri);
|
||||
root->set_property (X_("last-preset-label"), _last_preset.label);
|
||||
|
Loading…
Reference in New Issue
Block a user