mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30: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.
|
# from our backend FileListCache.
|
||||||
setImportPaths: (importPaths=[]) ->
|
setImportPaths: (importPaths=[]) ->
|
||||||
fileCache = NylasEnv.fileListCache()
|
fileCache = NylasEnv.fileListCache()
|
||||||
fileCacheImportPaths ?= fileCache.lessCacheImportPaths ? []
|
fileCacheImportPaths = fileCache.lessCacheImportPaths ? []
|
||||||
fullImportPaths = importPaths.concat(@lessSearchPaths)
|
fullImportPaths = importPaths.concat(@lessSearchPaths)
|
||||||
pathDiff = _.difference(fullImportPaths, fileCacheImportPaths)
|
if not _.isEqual(fullImportPaths, fileCacheImportPaths)
|
||||||
if pathDiff.length isnt 0
|
|
||||||
@cache.setImportPaths(fullImportPaths)
|
@cache.setImportPaths(fullImportPaths)
|
||||||
fileCache.lessCacheImportPaths = fullImportPaths
|
fileCache.lessCacheImportPaths = fullImportPaths
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue