mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
fix(less): fix themes not loading properly from cache
This commit is contained in:
parent
6cf4f8edcd
commit
f5c40c6f99
1 changed files with 2 additions and 3 deletions
|
@ -30,10 +30,9 @@ class LessCompileCache
|
|||
# from our backend FileListCache.
|
||||
setImportPaths: (importPaths=[]) ->
|
||||
fileCache = NylasEnv.fileListCache()
|
||||
fileCacheImportPaths ?= fileCache.lessCacheImportPaths ? []
|
||||
fileCacheImportPaths = fileCache.lessCacheImportPaths ? []
|
||||
fullImportPaths = importPaths.concat(@lessSearchPaths)
|
||||
pathDiff = _.difference(fullImportPaths, fileCacheImportPaths)
|
||||
if pathDiff.length isnt 0
|
||||
if not _.isEqual(fullImportPaths, fileCacheImportPaths)
|
||||
@cache.setImportPaths(fullImportPaths)
|
||||
fileCache.lessCacheImportPaths = fullImportPaths
|
||||
|
||||
|
|
Loading…
Reference in a new issue