2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Merge pull request #393 from tigran123/bookmark-refresh

No need for page redraw in UniReader:addBookmark()
This commit is contained in:
Dobrica Pavlinušić 2012-10-08 04:08:00 -07:00
commit 5608759e0f

View File

@ -1469,7 +1469,6 @@ function UniReader:addJump(pageno)
end end
table.insert(self.jump_history, jump_item) table.insert(self.jump_history, jump_item)
self.jump_history.cur = #self.jump_history + 1 self.jump_history.cur = #self.jump_history + 1
--self:redrawCurrentPage()
return true return true
end end
@ -1507,7 +1506,6 @@ function UniReader:addBookmark(pageno)
table.sort(self.bookmarks, function(a,b) table.sort(self.bookmarks, function(a,b)
return self:isBookmarkInSequence(a, b) return self:isBookmarkInSequence(a, b)
end) end)
self:redrawCurrentPage()
return true return true
end end