Search Google books for missing covers

Small fixes
This commit is contained in:
BasioMeusPuga
2019-02-05 23:12:22 +05:30
parent 91ca1e2190
commit 1e004774c9
4 changed files with 58 additions and 8 deletions

View File

@@ -718,11 +718,16 @@ class PliantWidgetsCommonFunctions:
def change_chapter(self, direction, was_button_pressed=None):
current_tab = self.pw.parent
current_position = current_tab.metadata['position']['current_chapter']
final_position = len(current_tab.metadata['content'])
# Prevent scrolling below page 1
if current_position == 1 and direction == -1:
return
# Prevent scrolling beyond last page
if (current_position == final_position) and direction == 1:
return
# Special cases for double page view
# Page limits are taken care of by the set_content method
def get_modifier():