Initial light control widget; final fixes for kobo light

This commit is contained in:
Giorgio Micotti
2013-08-05 23:06:26 +02:00
parent 68af46f495
commit cea353323e
5 changed files with 86 additions and 5 deletions

View File

@@ -56,7 +56,14 @@ function ReaderMenu:setUpdateItemTable()
for _, widget in pairs(self.registered_widgets) do
widget:addToMainMenu(self.tab_item_table)
end
if Device:hasFrontlight() then
table.insert(self.tab_item_table.main, {
text = _("Frontlight settings"),
callback = function()
ReaderFrontLight:onShowFlDialog()
end
})
end
table.insert(self.tab_item_table.main, {
text = _("Help"),
callback = function()