mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: move commands initilization from global init to local
If we call addAllCommands in initGlobalSettings, all the readers will share the same commands and we cannot adjust commands for a specific reader. I thus moved this method call to Unireader:init() method.
This commit is contained in:
@@ -7,6 +7,7 @@ CREReader = UniReader:new{
|
||||
}
|
||||
|
||||
function CREReader:init()
|
||||
self:addAllCommands()
|
||||
self:adjustCreReaderCommands()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user