Skip to content

Commit

Permalink
Avoid uploding book file endlessly, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Nov 30, 2023
1 parent 9a2b82e commit 674c15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion send_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def send_files(self, job: Any) -> None:
if library_book_path.stem.endswith("_en"):
library_book_path.unlink()
self.gui.status_bar.show_message(self.notif)
else:
elif job is None:
# upload book and cover to device
self.gui.update_thumbnail(self.job_data.mi)
# without this the book language won't be English after uploading
Expand Down

0 comments on commit 674c15d

Please sign in to comment.