From 9119d12e17ad8249d75415684cc76d9796aa8bb3 Mon Sep 17 00:00:00 2001 From: chrox Date: Sun, 8 Jun 2014 14:08:50 +0800 Subject: [PATCH] use checked/unchecked for zooming options --- frontend/apps/reader/modules/readerzooming.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/apps/reader/modules/readerzooming.lua b/frontend/apps/reader/modules/readerzooming.lua index 656e94f23..f86b163bb 100644 --- a/frontend/apps/reader/modules/readerzooming.lua +++ b/frontend/apps/reader/modules/readerzooming.lua @@ -293,26 +293,32 @@ function ReaderZooming:addToMainMenu(tab_item_table) sub_item_table = { { text = _("Zoom to fit content width"), + checked_func = function() return self.zoom_mode == "contentwidth" end, callback = self:genSetZoomModeCallBack("contentwidth") }, { text = _("Zoom to fit content height"), + checked_func = function() return self.zoom_mode == "contentheight" end, callback = self:genSetZoomModeCallBack("contentheight") }, { text = _("Zoom to fit page width"), + checked_func = function() return self.zoom_mode == "pagewidth" end, callback = self:genSetZoomModeCallBack("pagewidth") }, { text = _("Zoom to fit page height"), + checked_func = function() return self.zoom_mode == "pageheight" end, callback = self:genSetZoomModeCallBack("pageheight") }, { text = _("Zoom to fit content"), + checked_func = function() return self.zoom_mode == "content" end, callback = self:genSetZoomModeCallBack("content") }, { text = _("Zoom to fit page"), + checked_func = function() return self.zoom_mode == "page" end, callback = self:genSetZoomModeCallBack("page") }, }