Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns

This commit is contained in:
Paulo Matias
2013-08-10 21:00:13 -03:00
parent 0d421afbe4
commit 232d8cd74a
3 changed files with 13 additions and 35 deletions

View File

@@ -56,14 +56,6 @@ 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()