diff --git a/share/scripts/mixer_settings_recall.lua b/share/scripts/mixer_settings_recall.lua index f22b17714e..5074fab3c5 100644 --- a/share/scripts/mixer_settings_recall.lua +++ b/share/scripts/mixer_settings_recall.lua @@ -118,6 +118,7 @@ function factory (params) --print(i, l) local create_groups = dry_run["create_groups"] + local set_names = dry_run["set_names"] local skip_line = false local plugin, route, group = false, false, false @@ -181,6 +182,8 @@ function factory (params) if rt:isnil() then rt = Session:route_by_name(name) end if rt:isnil() then goto nextline end + if (set_names) then rt:set_name(name) end + if sends then for i, data in pairs(sends) do i = i-1 @@ -413,6 +416,9 @@ function factory (params) type = "checkbox", col=0, colspan=2, align="left", key = "create_groups", default = true, title = "Create Groups if necessary?" }) end + table.insert(dry_table, { + type = "checkbox", col=0, colspan=2, align="left", key = "set_names", default = true, title = "Set Names from File" + }) return dry_table end