This commit is contained in:
Kovid Goyal 2023-10-18 06:26:12 +05:30
parent 1a2010ef73
commit 72ab25a5b8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -368,6 +368,7 @@ class FontScanner(Thread):
self.font_family_map, self.font_families = build_families(self.cached_fonts, self.folders)
def write_cache(self):
# writing to the cache is atomic thanks to JSONConfig
with self.cache:
self.cache['version'] = self.CACHE_VERSION
self.cache['fonts'] = self.cached_fonts