mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1a2010ef73
commit
72ab25a5b8
@ -368,6 +368,7 @@ class FontScanner(Thread):
|
|||||||
self.font_family_map, self.font_families = build_families(self.cached_fonts, self.folders)
|
self.font_family_map, self.font_families = build_families(self.cached_fonts, self.folders)
|
||||||
|
|
||||||
def write_cache(self):
|
def write_cache(self):
|
||||||
|
# writing to the cache is atomic thanks to JSONConfig
|
||||||
with self.cache:
|
with self.cache:
|
||||||
self.cache['version'] = self.CACHE_VERSION
|
self.cache['version'] = self.CACHE_VERSION
|
||||||
self.cache['fonts'] = self.cached_fonts
|
self.cache['fonts'] = self.cached_fonts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user