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:
commit
5608759e0f
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user