Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lua/dyn_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ local function dyn_menu_load(item, keyword)
dirty = false,
}
dyn_menus[#dyn_menus + 1] = menu
keyword_to_menu[keyword] = menu

local expr = keyword:match('^state=(.-)%s*$')
if expr then
Expand All @@ -509,6 +508,7 @@ local function dyn_menu_load(item, keyword)
else
keyword = keyword:match('^([%S]+).*$')
menu.updater = dyn_updaters[keyword]
keyword_to_menu[keyword] = menu
end

-- update menu immediately
Expand Down Expand Up @@ -662,6 +662,7 @@ mp.register_script_message('update', function(keyword, json)
end

local item = menu.item
data.shortcut = item.shortcut
if not data.title or data.title == '' then data.title = item.title end
if not data.type or data.type == '' then data.type = item.type end

Expand Down