mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9c9ed534e3
commit
f9c0d2134d
@ -45,6 +45,7 @@ class SearchDialog(QDialog, Ui_Dialog):
|
||||
self.cache_pool = CacheUpdateThreadPool(self.cache_thread_count)
|
||||
self.results_view.model().cover_pool.set_thread_count(self.cover_thread_count)
|
||||
self.results_view.model().details_pool.set_thread_count(self.details_thread_count)
|
||||
self.results_view.setCursor(Qt.PointingHandCursor)
|
||||
|
||||
# Check for results and hung threads.
|
||||
self.checker = QTimer()
|
||||
@ -90,7 +91,7 @@ class SearchDialog(QDialog, Ui_Dialog):
|
||||
|
||||
def setup_store_checks(self):
|
||||
first_run = self.config.get('first_run', True)
|
||||
|
||||
|
||||
# Add check boxes for each store so the user
|
||||
# can disable searching specific stores on a
|
||||
# per search basis.
|
||||
@ -117,7 +118,7 @@ class SearchDialog(QDialog, Ui_Dialog):
|
||||
self.store_checks[x] = cbox
|
||||
store_list_layout.setRowStretch(store_list_layout.rowCount(), 10)
|
||||
self.store_list.setWidget(stores_check_widget)
|
||||
|
||||
|
||||
self.config['first_run'] = False
|
||||
|
||||
def build_adv_search(self):
|
||||
@ -340,7 +341,7 @@ class SearchDialog(QDialog, Ui_Dialog):
|
||||
|
||||
def result_item_activated(self, index):
|
||||
result = self.results_view.model().get_result(index)
|
||||
|
||||
|
||||
if result.downloads:
|
||||
self.download_book(result)
|
||||
else:
|
||||
@ -353,7 +354,7 @@ class SearchDialog(QDialog, Ui_Dialog):
|
||||
fname = result.title[:60] + '.' + ext.lower()
|
||||
fname = ascii_filename(fname)
|
||||
self.gui.download_ebook(result.downloads[ext], filename=fname)
|
||||
|
||||
|
||||
def open_store(self, result):
|
||||
self.gui.istores[result.store_name].open(self, result.detail_item, self.open_external.isChecked())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user