mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:13:04 +02:00
Fix empty cover browser caption template handling
This commit is contained in:
parent
16ca7f1987
commit
8eb05c2a69
2 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ def __init__(self, model, is_cover_browser_visible):
|
|||
def init_template(self, db):
|
||||
self.template_cache = {}
|
||||
self.template_error_reported = False
|
||||
self.template = db.pref('cover_browser_title_template', '{title}')
|
||||
self.template = db.pref('cover_browser_title_template', '{title}') or ''
|
||||
self.template_is_title = self.template == '{title}'
|
||||
self.template_is_empty = not self.template.strip()
|
||||
|
||||
|
|
|
|||
|
|
@ -1193,7 +1193,7 @@ using the mouse.</p></string>
|
|||
<item row="7" column="1">
|
||||
<widget class="QLineEdit" name="opt_cover_browser_title_template">
|
||||
<property name="toolTip">
|
||||
<string>The template used to generate the text below the covers. Uses the same syntax as save templates. Defaults to just the book title. Note that this setting is per-library, which means that you have to set it again for every different calibre library you use.</string>
|
||||
<string>The template used to generate the text below the covers. Uses the same syntax as save templates. Defaults to just the book title. Note that this setting is per-library, which means that you have to set it again for every different calibre library you use. Use an empty template for no text.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
|||
Loading…
Reference in a new issue