mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't try to update the cache if locking is disabled (#6258)
This commit is contained in:
parent
f11bb25b8f
commit
87ba8699cb
@ -175,6 +175,8 @@ class Cache {
|
||||
}
|
||||
|
||||
Future<Null> updateAll() async {
|
||||
if (!_lockEnabled)
|
||||
return null;
|
||||
MaterialFonts materialFonts = new MaterialFonts(cache);
|
||||
if (!materialFonts.isUpToDate())
|
||||
await materialFonts.download();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user