mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
MenuSorter: fix overlooked new plugins
* frontlight gesture controller * battery statistics
This commit is contained in:
@@ -251,8 +251,8 @@ function BatteryStatWidget:init()
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
end
|
||||
|
||||
function BatteryStatWidget:addToMainMenu(tab_item_table)
|
||||
table.insert(tab_item_table.plugins, {
|
||||
function BatteryStatWidget:addToMainMenu(menu_items)
|
||||
menu_items.battery_statistics = {
|
||||
text = _("Battery statistics"),
|
||||
callback = function()
|
||||
BatteryStat:onCallback()
|
||||
|
||||
@@ -159,8 +159,8 @@ function KoboLight:onSwipe(_, ges)
|
||||
return true
|
||||
end
|
||||
|
||||
function KoboLight:addToMainMenu(tab_item_table)
|
||||
table.insert(tab_item_table.plugins, {
|
||||
function KoboLight:addToMainMenu(menu_items)
|
||||
menu_items.frontlight_gesture_controller = {
|
||||
text = _("Frontlight gesture controller"),
|
||||
callback = function()
|
||||
local image = ImageWidget:new{
|
||||
|
||||
Reference in New Issue
Block a user