hwhw/kindlepdfviewer — pull request #416 by kai771 (2012-10-10 18:53:09+00:00)
Title: Implements a toggle that allows enabling/disabling links underlining

Implements a toggle that allows enabling/disabling links underlining

I commented earlier that new versions of KPV are sluggish with turning pages in cbz files compared to earlier versions. After

some analysis, I concluded that the culprit is this line:

local links = self:getPageLinks( no )

which was confirmed with a test replacing that line with:

local links = nil

It seems that getPageLinks() takes some time to return for cbz files, which of course, don't have links in them. It is called

from UniReader:show(), so because of that, even panning is sluggish. This PR implements a toggle that shows/hides the links on

the page (skipping calling getPageLinks if show_links_enable is false).

Btw, it seems that saving settings is broken in current dev builds.