From 4a811b931c33bfa9755f2d89784a4d16ea0b8f73 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 22 Dec 2014 10:31:20 +0530 Subject: [PATCH] Run the completion worker process automatically --- src/calibre/gui2/tweak_book/boss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index ac5a88e000..bb8a21459c 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -31,6 +31,7 @@ from calibre.gui2.dialogs.confirm_delete import confirm from calibre.gui2.tweak_book import ( set_current_container, current_container, tprefs, actions, editors, set_book_locale, dictionaries, editor_name) +from calibre.gui2.tweak_book.completion.worker import completion_worker from calibre.gui2.tweak_book.undo import GlobalUndoHistory from calibre.gui2.tweak_book.file_list import NewFileDialog from calibre.gui2.tweak_book.save import SaveManager, save_container, find_first_existing_ancestor @@ -82,6 +83,7 @@ class Boss(QObject): setup_cssutils_serialization() _boss = self self.gui = parent + completion_worker() def __call__(self, gui): self.gui = gui @@ -1398,6 +1400,7 @@ class Boss(QObject): QApplication.instance().quit() def shutdown(self): + completion_worker().shutdown() self.save_manager.check_for_completion.disconnect() self.gui.preview.stop_refresh_timer() self.gui.live_css.stop_update_timer()