mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6393e98e89
commit
01be1fcee1
@ -140,8 +140,8 @@ class RecipeModel(QAbstractItemModel, SearchQueryParser):
|
|||||||
self.scheduler_config = SchedulerConfig()
|
self.scheduler_config = SchedulerConfig()
|
||||||
try:
|
try:
|
||||||
with zipfile.ZipFile(P('builtin_recipes.zip'), 'r') as zf:
|
with zipfile.ZipFile(P('builtin_recipes.zip'), 'r') as zf:
|
||||||
self.favicons = dict([(x, zf.getinfo(x)) for x in zf.namelist() if
|
self.favicons = dict([(x.filename, x) for x in zf.infolist() if
|
||||||
x.endswith('.png')])
|
x.filename.endswith('.png')])
|
||||||
except:
|
except:
|
||||||
self.favicons = {}
|
self.favicons = {}
|
||||||
self.do_refresh()
|
self.do_refresh()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user