diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-07 16:15:27 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-07 16:15:27 -0800 |
| commit | c15719de25f65e8bb3f5c57960b60bc0ec17f7cd (patch) | |
| tree | 519cc94aaef44622709a27d4daa9c72bbd117269 | |
| parent | 83b4d6ff1dac0d483ad1a470fef80485c151a0ea (diff) | |
| download | mpv-iptv-menu-c15719de25f65e8bb3f5c57960b60bc0ec17f7cd.tar.gz mpv-iptv-menu-c15719de25f65e8bb3f5c57960b60bc0ec17f7cd.tar.xz | |
only draw final menu on goto commands
| -rw-r--r-- | main.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
