Skip to content

Commit

Permalink
fix: track menu hints sometimes concatenating empty strings
Browse files Browse the repository at this point in the history
closes #976
  • Loading branch information
tomasklaen committed Sep 3, 2024
1 parent 05af465 commit da83afd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/uosc/lib/menus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ function create_select_tracklist_type_menu_opener(opts)
local hint_values = {}
local track_selected = track.selected and track.id == track_prop_index
local snd_selected = snd and track.id == snd_prop_index
local function h(value) hint_values[#hint_values + 1] = value end
local function h(value)
value = trim(value)
if #value > 0 then hint_values[#hint_values + 1] = value end
end

if track.lang then h(track.lang) end
if track['demux-h'] then
Expand Down

0 comments on commit da83afd

Please sign in to comment.