Don't try to update the cache if locking is disabled (#6258)
This commit is contained in:
@@ -175,6 +175,8 @@ class Cache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<Null> updateAll() async {
|
Future<Null> updateAll() async {
|
||||||
|
if (!_lockEnabled)
|
||||||
|
return null;
|
||||||
MaterialFonts materialFonts = new MaterialFonts(cache);
|
MaterialFonts materialFonts = new MaterialFonts(cache);
|
||||||
if (!materialFonts.isUpToDate())
|
if (!materialFonts.isUpToDate())
|
||||||
await materialFonts.download();
|
await materialFonts.download();
|
||||||
|
|||||||
Reference in New Issue
Block a user