This commit is contained in:
zwim
2025-07-30 08:04:15 +02:00
parent 201a1f035c
commit 619af00045

View File

@@ -229,14 +229,9 @@ function TouchMenuItem:onHoldSelect(arg, ges)
end
if enabled == false then
-- Allow help_text to be displayed even if menu item disabled
if self.item.help_text or self.item.help_text_func then
local help_text = self.item.help_text
if self.item.help_text_func then
help_text = self.item.help_text_func(self)
end
if help_text then
UIManager:show(InfoMessage:new{ text = help_text, })
end
local help_text = self.item.help_text_func and self.item.help_text_func(self) or self.item.help_text
if help_text then
UIManager:show(InfoMessage:new{ text = help_text, })
end
return true -- don't propagate
end