fixed main fucntion bug

Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
Ebbe Baß
2024-10-26 15:02:03 +02:00
parent 406ebe73c2
commit 29c06df5fe
+21 -21
View File
@@ -317,6 +317,25 @@ end
-- Main menu
function main()
if args then
local cues = SelectedSequence():Children()
local spCues = {}
for i = 1, tablelength(cues), 1 do
cue = cues[i]:Children()[1]
cueNo = cues[i].no
if cue.appearance then
if cue.appearance.name == "Start Point" then
table.insert(spCues, tonumber(cueNo))
end
end
end
for i = 1, 10, 1 do
if args == "goto_sp"..tostring(i) then
Cmd("Goto Cue "..tostring(spCues[i]/1000))
end
end
else
local resultTable = MessageBox(
{
title = "Song Tool - Main Menu",
@@ -348,26 +367,7 @@ function main()
else
do return end
end
end
end
if args then
local cues = SelectedSequence():Children()
local spCues = {}
for i = 1, tablelength(cues), 1 do
cue = cues[i]:Children()[1]
cueNo = cues[i].no
if cue.appearance then
if cue.appearance.name == "Start Point" then
table.insert(spCues, tonumber(cueNo))
end
end
end
for i = 1, 10, 1 do
if args == "goto_sp"..tostring(i) then
Cmd("Goto Cue "..tostring(spCues[i]/1000))
end
end
else
return main
end
return main