mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #6630 (Problem with 'Similar books' options in v7.15) and add CHM to list of supported formats for Spectre
This commit is contained in:
parent
736bd67091
commit
e8608b95be
@ -86,7 +86,7 @@ class SPECTRA(HANLINV3):
|
||||
gui_name = 'Spectra'
|
||||
PRODUCT_ID = [0xa4a5]
|
||||
|
||||
FORMATS = ['epub', 'mobi', 'fb2', 'lit', 'prc', 'djvu', 'pdf', 'rtf', 'txt']
|
||||
FORMATS = ['epub', 'mobi', 'fb2', 'lit', 'prc', 'chm', 'djvu', 'pdf', 'rtf', 'txt']
|
||||
|
||||
SUPPORTS_SUB_DIRS = True
|
||||
|
||||
|
@ -27,7 +27,7 @@ class SimilarBooksAction(InterfaceAction):
|
||||
ac = self.create_action(spec=(text, icon, None, shortcut),
|
||||
attr=target)
|
||||
m.addAction(ac)
|
||||
m.triggered.connect(partial(self.show_similar_books, target))
|
||||
ac.triggered.connect(partial(self.show_similar_books, target))
|
||||
self.qaction.setMenu(m)
|
||||
self.similar_menu = m
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user