From 1d687403ea61711ceb4d0684b0a09ed85272f1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 27 Oct 2024 10:53:54 +0100 Subject: [PATCH] fixed arg handels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- Song tool.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Song tool.lua b/Song tool.lua index 3e4d088..1c1ab3a 100644 --- a/Song tool.lua +++ b/Song tool.lua @@ -203,11 +203,12 @@ function StartPointerCueSelectionMenu(main_sequence_no) for i = 1, tablelength(cues) do if cues[i]:Children()[1].appearance then if tostring(cues[i]:Children()[1].appearance.name) == "Start Point" then - spCues = i + spCues = spCues + 1 end end end - + + debug_print(tostring(spCues)) if spCues >= 9 then LimitReachedMenu(main_sequence_no) else @@ -316,7 +317,8 @@ end -- Main menu -function main() +function main(display_handle, args) + debug_print(tostring(args)) if args then local cues = SelectedSequence():Children() local spCues = {} @@ -335,6 +337,7 @@ function main() Cmd("Goto Cue "..tostring(spCues[i]/1000)) end end + -- args = nil else local resultTable = MessageBox( {