Next/Previous Bookmark Gestures#5968
Conversation
CreDocument already implements this. |
if self.document.info.has_pages then
curr_page = self.ui.paging.current_page
else
curr_page = self.document:getCurrentPage()
end
If you're asking, may be there's none obvious :) and that's why it's the way it is. (I'd say: don't bother "fixing" that for such a little PR :) |
|
I think i managed it. Let me know if this looks good or i should abandon the whole mess I made it a UI function. |
| self:showReader(new_file) | ||
| end | ||
|
|
||
| function ReaderUI:getCurrentPage() |
There was a problem hiding this comment.
Was about to suggest to put it as a more appropriate place (that at the end), with some other alike functions... but there are none :)
So, indeed, it's not the module where we expect such functions... so let it be there.
May be just add a comment -- little convenient helper
(Or move if into ReaderView, where it would be more at home?)
Fixes #5965
This change is