Bugfix: In zoom mode menu selection we need to redraw the screen even if the selected mode is the same as the current one,

otherwise it gives an impression that the program hangs (unless the user presses Next page or does anything else that causes
screen refresh, e.g. manual screen refresh).
This commit is contained in:
Tigran Aivazian
2012-09-03 17:34:48 +01:00
parent c9dcf5bdd2
commit df18cae233

View File

@@ -2123,11 +2123,11 @@ function UniReader:addAllCommands()
current_entry = - unireader.globalzoom_mode
}
local re = zoom_menu:choose(0, G_height)
if not re or re==1 or re==8 or re==9 then -- if not proper zoom-mode
unireader:redrawCurrentPage()
else
if re and re ~= 1 and re ~= 8 and re ~= 9 then -- if proper zoom-mode
Debug("setting zoom mode re=" .. re)
unireader:setglobalzoom_mode(1-re)
end
unireader:redrawCurrentPage()
end)
-- to leave or to erase 8 hotkeys switching zoom-mode directly?