Skip to content

Commit

Permalink
Add Hazado's suggestions that actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
DoobesURU committed Dec 21, 2023
1 parent 4dde718 commit 864d9e9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Scripts/Python/xLinkingBookGUIPopup.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,7 @@ def IShowBookNoTreasure(self):
gLinkingBook = ptBook(bookdef,self.key)
gLinkingBook.setSize( width, height )
# make sure there is a cover to show
if not showOpen and not self.IsThereACover(bookdef):
showOpen = 1
elif showOpen and not self.IsThereACover(bookdef):
showOpen = 1
else:
if showOpen and self.IsThereACover(bookdef):
showOpen = 0
gLinkingBook.setGUI(gui)
gLinkingBook.show(showOpen)
Expand Down Expand Up @@ -867,7 +863,7 @@ def IAddShare(self):
def IsThereACover(self,bookHtml):
# search the bookhtml string looking for a cover
idx = bookHtml.find('<cover')
if idx > 0:
if idx >= 0:
return 1
return 0

Expand Down

0 comments on commit 864d9e9

Please sign in to comment.