mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Sync editors to container when refreshing spell check dialog
This commit is contained in:
parent
303d5f04fe
commit
ae443dc309
@ -112,6 +112,7 @@ class Boss(QObject):
|
||||
self.gui.central.search_panel.save_search.connect(self.save_search)
|
||||
self.gui.central.search_panel.show_saved_searches.connect(self.show_saved_searches)
|
||||
self.gui.spell_check.find_word.connect(self.find_word)
|
||||
self.gui.spell_check.refresh_requested.connect(self.commit_all_editors_to_container)
|
||||
|
||||
def preferences(self):
|
||||
p = Preferences(self.gui)
|
||||
|
@ -671,6 +671,7 @@ class SpellCheck(Dialog):
|
||||
|
||||
work_finished = pyqtSignal(object, object)
|
||||
find_word = pyqtSignal(object, object)
|
||||
refresh_requested = pyqtSignal()
|
||||
|
||||
def __init__(self, parent=None):
|
||||
self.__current_word = None
|
||||
@ -906,6 +907,7 @@ class SpellCheck(Dialog):
|
||||
self.thread.join()
|
||||
self.stack.setCurrentIndex(0)
|
||||
self.progress_indicator.startAnimation()
|
||||
self.refresh_requested.emit()
|
||||
self.thread = Thread(target=self.get_words)
|
||||
self.thread.daemon = True
|
||||
self.cancel = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user