mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
menu on k3
This commit is contained in:
@@ -142,6 +142,9 @@ function ReaderToc:onShowToc()
|
||||
end
|
||||
|
||||
UIManager:show(menu_container)
|
||||
--nicolua
|
||||
UIManager:show(toc_menu)
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ function FocusManager:onFocusMove(args)
|
||||
current_item:handleEvent(Event:new("Unfocus"))
|
||||
self.layout[self.selected.y][self.selected.x]:handleEvent(Event:new("Focus"))
|
||||
-- trigger a repaint (we need to be the registered widget!)
|
||||
UIManager:setDirty(self, "partial")
|
||||
UIManager:setDirty(self.show_parent or self, "partial")
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
@@ -542,8 +542,11 @@ function Menu:updateItems(select_number)
|
||||
end
|
||||
|
||||
-- FIXME: this is a dirty hack to clear previous menus
|
||||
UIManager.repaint_all = true
|
||||
-- UIManager.repaint_all = true
|
||||
--UIManager:setDirty(self)
|
||||
--nicolua
|
||||
UIManager:setDirty(self.show_parent or self)
|
||||
|
||||
end
|
||||
|
||||
function Menu:swithItemTable(new_title, new_item_table)
|
||||
|
||||
Reference in New Issue
Block a user