summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2026-01-07 16:15:27 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2026-01-07 16:15:27 -0800
commitc15719de25f65e8bb3f5c57960b60bc0ec17f7cd (patch)
tree519cc94aaef44622709a27d4daa9c72bbd117269
parent83b4d6ff1dac0d483ad1a470fef80485c151a0ea (diff)
downloadmpv-iptv-menu-c15719de25f65e8bb3f5c57960b60bc0ec17f7cd.tar.gz
mpv-iptv-menu-c15719de25f65e8bb3f5c57960b60bc0ec17f7cd.tar.xz
only draw final menu on goto commands
-rw-r--r--main.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.lua b/main.lua
index c139c07..41a1b3a 100644
--- a/main.lua
+++ b/main.lua
@@ -137,7 +137,7 @@ end
local function cursor_to_object(id)
for i, v in ipairs(state:menu().options) do
if v.id == id then
- set_cursor(i, {centre = true})
+ set_cursor(i, {centre = true, skip_redraw = true})
return
end
end
@@ -384,7 +384,6 @@ local function push_group_menu(group)
type = 'group',
group_id = group.id,
})
- update_osd()
end
-- refresh options when navigating up the stack to a previous favourites menu.
@@ -447,8 +446,9 @@ local function prev_menu()
if state:menu().group_id == 'favourites' then
refresh_favourites_menu()
end
- update_osd()
end
+
+ update_osd()
end
local function play_stream(stream)
@@ -473,6 +473,7 @@ local function select_option()
if opt.type == 'group' then
push_group_menu(opt)
+ update_osd()
elseif opt.type == 'stream' then
play_stream(opt)
end