Skip to content

Commit

Permalink
Merge pull request #72 from mmedal/issue-71/menu-activate-select-fix
Browse files Browse the repository at this point in the history
Fix bug where Menu:activate() does not select
  • Loading branch information
Mark-LaCroix authored Apr 28, 2024
2 parents 639caea + 30af678 commit e31b67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Noble.Menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ function Noble.Menu.new(__activate, __alignment, __localized, __color, __padding
-- local menu = Noble.Menu.new(false)
-- menu:activate()
function menu:activate()
self:select(self.currentItemNumber)
active = true
self:select(self.currentItemNumber)
end
--- Deactivate this menu.
-- This deselects all menu items, and disables this menu's @{selectPrevious|selectPrevious}, @{selectNext|selectNext}, and @{click|click} methods.
Expand Down

0 comments on commit e31b67b

Please sign in to comment.