diff --git a/calibre-plugin/config.py b/calibre-plugin/config.py index 98c307ba..bad0f804 100644 --- a/calibre-plugin/config.py +++ b/calibre-plugin/config.py @@ -174,6 +174,7 @@ class ConfigWidget(QWidget): prefs['keeptags'] = self.basic_tab.keeptags.isChecked() prefs['suppressauthorsort'] = self.basic_tab.suppressauthorsort.isChecked() prefs['suppresstitlesort'] = self.basic_tab.suppresstitlesort.isChecked() + prefs['mark'] = self.basic_tab.mark.isChecked() prefs['showmarked'] = self.basic_tab.showmarked.isChecked() prefs['urlsfromclip'] = self.basic_tab.urlsfromclip.isChecked() prefs['updatedefault'] = self.basic_tab.updatedefault.isChecked() @@ -378,8 +379,13 @@ class BasicTab(QWidget): self.lookforurlinhtml.setChecked(prefs['lookforurlinhtml']) self.l.addWidget(self.lookforurlinhtml) - self.showmarked = QCheckBox("Show added/updated books when finished?",self) - self.showmarked.setToolTip("Show added/updated books only when finished.\nYou can also manually search for 'marked:ffdl_success'.\n'marked:ffdl_failed' is also available, or search 'marked:ffdl' for both.") + self.mark = QCheckBox("Mark added/updated books when finished?",self) + self.mark.setToolTip("Mark added/updated books when finished. Use with option below.\nYou can also manually search for 'marked:ffdl_success'.\n'marked:ffdl_failed' is also available, or search 'marked:ffdl' for both.") + self.mark.setChecked(prefs['mark']) + self.l.addWidget(self.mark) + + self.showmarked = QCheckBox("Show Marked books when finished?",self) + self.showmarked.setToolTip("Show Marked added/updated books only when finished.\nYou can also manually search for 'marked:ffdl_success'.\n'marked:ffdl_failed' is also available, or search 'marked:ffdl' for both.") self.showmarked.setChecked(prefs['showmarked']) self.l.addWidget(self.showmarked) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index f591f44d..386f2a77 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -1155,7 +1155,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction): if self.gui.cover_flow: self.gui.cover_flow.dataChanged() - if showlist: # don't use with anthology + if showlist and prefs['mark']: # don't use with anthology or when off db = self.gui.current_db marked_ids = dict() marked_text = "ffdl_success" diff --git a/calibre-plugin/prefs.py b/calibre-plugin/prefs.py index 1c64c032..83672a53 100644 --- a/calibre-plugin/prefs.py +++ b/calibre-plugin/prefs.py @@ -32,6 +32,7 @@ default_prefs['updateepubcover'] = False default_prefs['keeptags'] = False default_prefs['suppressauthorsort'] = False default_prefs['suppresstitlesort'] = False +default_prefs['mark'] = True default_prefs['showmarked'] = False default_prefs['urlsfromclip'] = True default_prefs['updatedefault'] = True