diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-29 21:48:19 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-29 21:48:19 -0800 |
| commit | 28068fb57dc1e0aff22f6de3c79ee3f9d8ffa65d (patch) | |
| tree | 16d25a670867ba56a53ea07afacd780b07275d8c /osd.lua | |
| parent | d59d49480e2981345fe173f741d6b0ad4a2d2320 (diff) | |
| download | mpv-iptv-menu-28068fb57dc1e0aff22f6de3c79ee3f9d8ffa65d.tar.gz mpv-iptv-menu-28068fb57dc1e0aff22f6de3c79ee3f9d8ffa65d.tar.xz | |
move application-aware utility functions to separate module
Diffstat (limited to 'osd.lua')
| -rw-r--r-- | osd.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -257,7 +257,7 @@ function mt:option_text(opt, info) str = col .. '[' .. str .. ']' end - if opt.programme and opt.type == 'programme' and opt.active then + if opt.programme and opt.active then str = str .. ' ' .. self:draw_progress_bar( opt.programme, colour.progress_bar_fg_active, colour.progress_bar_bg_active) @@ -268,9 +268,9 @@ function mt:option_text(opt, info) str = str .. colour.info .. ' (' .. asscape(opt_info) .. ')' end - if opt.programme and opt.type ~= 'programme' then + if opt.active_programme then str = str .. ' ' .. self:draw_progress_bar( - opt.programme, + opt.active_programme, info.selected and colour.progress_bar_fg_active or colour.progress_bar_fg, info.selected and colour.progress_bar_bg_active or |
