13
0

Tweak Lua API, avoid translated sting as return value

This commit is contained in:
Robin Gareus 2021-05-15 03:53:30 +02:00
parent ac87409122
commit 6346b54c13
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,9 @@ namespace ARDOUR { namespace LuaAPI {
/** List all installed plugins */
std::list<boost::shared_ptr<ARDOUR::PluginInfo> > list_plugins ();
/** Write a list of untagged plugins to a file, so we can bulk-tag them */
/** Write a list of untagged plugins to a file, so we can bulk-tag them
* @returns path to XML file or empty string on error
*/
std::string dump_untagged_plugins ();
/** search a Plugin

View File

@ -2188,7 +2188,6 @@ PluginManager::save_plugin_order_file (XMLNode &elem) const
std::string
PluginManager::dump_untagged_plugins ()
{
std::string retval;
std::string path = Glib::build_filename (user_plugin_metadata_dir(), "untagged_plugins");
XMLNode* root = new XMLNode (X_("PluginTags"));
@ -2214,11 +2213,10 @@ PluginManager::dump_untagged_plugins ()
XMLTree tree;
tree.set_root (root);
if (tree.write (path)) {
retval = path;
return path;
} else {
retval = string_compose (_("ERROR: Could not save Plugin Tags info to %1"), path);
return "";
}
return retval;
}
void