From 28068fb57dc1e0aff22f6de3c79ee3f9d8ffa65d Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Thu, 29 Jan 2026 21:48:19 -0800 Subject: move application-aware utility functions to separate module --- osd.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'osd.lua') diff --git a/osd.lua b/osd.lua index 87da3ab..2a05018 100644 --- a/osd.lua +++ b/osd.lua @@ -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 -- cgit v1.2.3-70-g09d2