mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When customizing builtin recipes download the latest version of the recipe to customize instead of using the possibly out of date bundled version
This commit is contained in:
parent
ca03c63fcd
commit
eed76c2e36
@ -312,7 +312,7 @@ class %(classname)s(%(base_class)s):
|
|||||||
item = items[-1]
|
item = items[-1]
|
||||||
id_ = unicode(item.data(Qt.UserRole).toString())
|
id_ = unicode(item.data(Qt.UserRole).toString())
|
||||||
title = unicode(item.data(Qt.DisplayRole).toString()).rpartition(' [')[0]
|
title = unicode(item.data(Qt.DisplayRole).toString()).rpartition(' [')[0]
|
||||||
profile = get_builtin_recipe_by_id(id_)
|
profile = get_builtin_recipe_by_id(id_, download_recipe=True)
|
||||||
if profile is None:
|
if profile is None:
|
||||||
raise Exception('Something weird happened')
|
raise Exception('Something weird happened')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user