mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
No need for page redraw in UniReader:addBookmark()
The call to self:redrawCurrentPage() in UniReader:addBookmark() comes from the days when this function was causing a "Retrieving TOC..." message via getTocTitleByPage()->fillToc() codepath. Now that message is gone so we should kill the redraw as well.
This commit is contained in:
@@ -1469,7 +1469,6 @@ function UniReader:addJump(pageno)
|
||||
end
|
||||
table.insert(self.jump_history, jump_item)
|
||||
self.jump_history.cur = #self.jump_history + 1
|
||||
--self:redrawCurrentPage()
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -1507,7 +1506,6 @@ function UniReader:addBookmark(pageno)
|
||||
table.sort(self.bookmarks, function(a,b)
|
||||
return self:isBookmarkInSequence(a, b)
|
||||
end)
|
||||
self:redrawCurrentPage()
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user