Fox (sort of) bug #1759222. The "sort of" comes from the fact that the last step is usually only one step long but can take an arbitrary amount of time. Consider if the title changes for 100 books. The update must rename all 100 book folders, which from S/R's point of view all happen in a single step.

This commit is contained in:
Charles Haley 2018-03-27 18:05:16 +02:00
parent 771cf7e9ce
commit 54a6f37c51

View File

@ -439,7 +439,8 @@ class MyBlockingBusy(QDialog): # {{{
self.s_r_func(book_id) self.s_r_func(book_id)
self.progress_update.emit(1) self.progress_update.emit(1)
if self.sr_calls: if self.sr_calls:
self.progress_next_step_range.emit(len(self.ids)) self.progress_next_step_range.emit(len(self.sr_calls))
self.progress_update.emit(0)
for field, book_id_val_map in self.sr_calls.iteritems(): for field, book_id_val_map in self.sr_calls.iteritems():
self.refresh_books.update(self.db.new_api.set_field(field, book_id_val_map)) self.refresh_books.update(self.db.new_api.set_field(field, book_id_val_map))
self.progress_update.emit(1) self.progress_update.emit(1)