mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-01 00:24:30 +01:00
Remove superfluous book_on_device calls
This commit is contained in:
parent
728be0ff52
commit
aace31619f
1 changed files with 0 additions and 2 deletions
|
|
@ -889,7 +889,6 @@ def books_deleted(self, job):
|
|||
# if set_books_in_library did not.
|
||||
if not self.set_books_in_library(self.booklists(), reset=True, add_as_step_to_job=job):
|
||||
self.upload_booklists(job)
|
||||
self.book_on_device(None, reset=True)
|
||||
# We need to reset the ondevice flags in the library. Use a big hammer,
|
||||
# so we don't need to worry about whether some succeeded or not.
|
||||
self.refresh_ondevice(reset_only=False)
|
||||
|
|
@ -1321,7 +1320,6 @@ def books_uploaded(self, job):
|
|||
if not self.set_books_in_library(self.booklists(), reset=True, add_as_step_to_job=job):
|
||||
self.upload_booklists(job)
|
||||
with self.library_view.preserve_state():
|
||||
self.book_on_device(None, reset=True)
|
||||
self.refresh_ondevice()
|
||||
|
||||
view = self.card_a_view if on_card == 'carda' else \
|
||||
|
|
|
|||
Loading…
Reference in a new issue