mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Menu widget: add extra (left) title button (#8564)
Customizable icon and actions on tap and long-press.
This commit is contained in:
@@ -201,6 +201,7 @@ function Button:setText(text, width)
|
||||
else
|
||||
self.text = text
|
||||
self.width = width
|
||||
self.label_widget:free()
|
||||
self:init()
|
||||
end
|
||||
end
|
||||
@@ -210,6 +211,7 @@ function Button:setIcon(icon, width)
|
||||
if icon ~= self.icon then
|
||||
self.icon = icon
|
||||
self.width = width
|
||||
self.label_widget:free()
|
||||
self:init()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user