Multiple fixes

This commit is contained in:
BasioMeusPuga
2019-01-16 12:25:59 +05:30
parent 17f39c557b
commit c6d24fd970
3 changed files with 24 additions and 10 deletions

View File

@@ -335,6 +335,11 @@ class Tab(QtWidgets.QWidget):
self.contentView.setTextCursor(cursor)
self.contentView.ensureCursorVisible()
# Finally, to make sure the cover image isn't
# scrolled halfway through on first open,
if self.main_window.bookToolBar.tocBox.currentIndex() == 0:
self.contentView.verticalScrollBar().setValue(0)
def generate_position(self, is_read=False):
total_chapters = len(self.metadata['content'])