NO-OP: whitespace
This commit is contained in:
parent
ad3d68b5b9
commit
632ab8c421
@ -1,8 +1,8 @@
|
||||
ardour {
|
||||
["type"] = "EditorAction",
|
||||
name = "Track Sort",
|
||||
author = "Ardour Lua Taskforce",
|
||||
description = [[Sort tracks alphabetically by name]]
|
||||
["type"] = "EditorAction",
|
||||
name = "Track Sort",
|
||||
author = "Ardour Lua Taskforce",
|
||||
description = [[Sort tracks alphabetically by name]]
|
||||
}
|
||||
|
||||
function factory () return function ()
|
||||
@ -12,19 +12,18 @@ function factory () return function ()
|
||||
end
|
||||
|
||||
local tracklist = {}
|
||||
for t in Session:get_tracks():iter() do
|
||||
table.insert(tracklist, t)
|
||||
print (t:name(), t:presentation_info_ptr():order())
|
||||
end
|
||||
for t in Session:get_tracks():iter() do
|
||||
table.insert(tracklist, t)
|
||||
end
|
||||
|
||||
table.sort(tracklist, tsort)
|
||||
table.sort(tracklist, tsort)
|
||||
|
||||
local pos = 1;
|
||||
for _, t in ipairs(tracklist) do
|
||||
t:set_presentation_order(pos)
|
||||
pos = pos + 1
|
||||
end
|
||||
local pos = 1;
|
||||
for _, t in ipairs(tracklist) do
|
||||
t:set_presentation_order(pos)
|
||||
pos = pos + 1
|
||||
end
|
||||
|
||||
tracklist = nil
|
||||
collectgarbage ()
|
||||
end end
|
||||
tracklist = nil
|
||||
collectgarbage ()
|
||||
end end
|
||||
|
Loading…
Reference in New Issue
Block a user