MenuSorter: fix overlooked new plugins

* frontlight gesture controller
* battery statistics
pull/2678/head
Frans de Jonge 7 years ago
parent 8b7e18a7d7
commit f22dcebb13

@ -31,7 +31,9 @@ local order = {
"evernote",
"goodreads",
"keep_alive",
"frontlight_gesture_controller",
"statistics",
"battery_statistics",
"storage_stat",
"cloud_storage",
"----------------------------",

@ -46,7 +46,9 @@ local order = {
"evernote",
"goodreads",
"keep_alive",
"frontlight_gesture_controller",
"statistics",
"battery_statistics",
"storage_stat",
"speed_reading_module_perception_expander",
"synchronize_time",

@ -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{

Loading…
Cancel
Save