From 55471734067499fd67a19253db50bc3c2686b72e Mon Sep 17 00:00:00 2001 From: Christian Fillion Date: Fri, 3 May 2024 22:35:56 -0400 Subject: [PATCH] Release Toggle track FX bypass by name v2.0 (#1383) Add an option to include input and monitoring effects [cfillion/reascripts#6] Fix truncated labels by replacing the GetUserInputs prompt with a ReaImGui interface --- Tracks Properties/cfillion_Toggle track FX bypass by name.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tracks Properties/cfillion_Toggle track FX bypass by name.lua b/Tracks Properties/cfillion_Toggle track FX bypass by name.lua index 2c12ea123..8a9a68a12 100644 --- a/Tracks Properties/cfillion_Toggle track FX bypass by name.lua +++ b/Tracks Properties/cfillion_Toggle track FX bypass by name.lua @@ -43,6 +43,7 @@ local function matchTrack(track, filter) end local function sanitizeFilename(name) + if #name < 1 then return '(any)' end -- replace special characters that are reserved on Windows return name:gsub("[*\\:<>?/|\"%c]+", '-') end @@ -159,7 +160,7 @@ local function loop() if visible then ImGui.Text(ctx, 'Toggle bypass of effects matching:') if ImGui.IsWindowAppearing(ctx) then ImGui.SetKeyboardFocusHere(ctx) end - fx_filter = select(2, ImGui.InputText(ctx, 'FX name', fx_filter)) + fx_filter = select(2, ImGui.InputText(ctx, 'Effect name', fx_filter)) ImGui.SameLine(ctx) helpTooltip(ctx, 'Search is case-insensitive.')