mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
adapt confirmbox to button widget changes
This commit is contained in:
@@ -25,10 +25,18 @@ function ConfirmBox:init()
|
||||
|
||||
local ok_button = Button:new{
|
||||
text = self.ok_text,
|
||||
callback = function()
|
||||
self.ok_callback()
|
||||
UIManager:close(self)
|
||||
end,
|
||||
}
|
||||
local cancel_button = Button:new{
|
||||
text = self.cancel_text,
|
||||
preselect = true
|
||||
preselect = true,
|
||||
callback = function()
|
||||
self.cancel_callback()
|
||||
UIManager:close(self)
|
||||
end,
|
||||
}
|
||||
|
||||
self.layout = { { ok_button, cancel_button } }
|
||||
|
||||
Reference in New Issue
Block a user