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.')