From cab6fbe22273b6c3c3fef6b2c82cfad3705a4472 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 15 Jun 2026 19:50:47 +0200 Subject: [PATCH] context_menu.lua: don't open disabled submenus on hover A menu item can have a non-empty submenu but still be disabled. This is the case for mkvs with a single edition. Don't open the submenu on hover in that case. --- player/lua/context_menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/context_menu.lua b/player/lua/context_menu.lua index 04b343ef6d..0d110f3885 100644 --- a/player/lua/context_menu.lua +++ b/player/lua/context_menu.lua @@ -495,7 +495,7 @@ local function handle_mouse_move() open_submenu_timer = nil end - if item and item.data.submenu then + if item and item.data.submenu and not has_state(item.data, "disabled") then open_submenu_timer = mp.add_timeout(options.seconds_to_open_submenus, function () open_submenu() end)