Menu widget: add extra (left) title button (#8564)

Customizable icon and actions on tap and long-press.
This commit is contained in:
hius07
2021-12-24 13:21:12 +02:00
committed by GitHub
parent 873ceac589
commit a9229ec3aa
3 changed files with 66 additions and 73 deletions

View File

@@ -161,6 +161,7 @@ end
function IconButton:setIcon(icon)
if icon ~= self.icon then
self.icon = icon
self:free()
self:init()
end
end