mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
refactoring module registration in readerui
now every module can be looked up in readerui so that unit test of these modules is possible.
This commit is contained in:
@@ -17,7 +17,9 @@ function ReaderLink:init()
|
||||
if Device:isTouchDevice() then
|
||||
self:initGesListener()
|
||||
end
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
self.ui:registerPostInitCallback(function()
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
end)
|
||||
end
|
||||
|
||||
function ReaderLink:onReadSettings(config)
|
||||
|
||||
Reference in New Issue
Block a user