mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 01:53:41 +08:00
fix: LocalizationUIModel downloadLocalizationFile wait flush
This commit is contained in:
parent
fb8ae2cb4f
commit
6f146ed84b
@ -280,7 +280,7 @@ class LocalizationUIModel extends _$LocalizationUIModel {
|
||||
"${URLConf.gitlabLocalizationUrl}/archive/${value.versionName}.tar.gz";
|
||||
final r = await RSHttp.get(downloadUrl);
|
||||
if (r.statusCode == 200 && r.data != null) {
|
||||
await savePath.writeAsBytes(r.data!);
|
||||
await savePath.writeAsBytes(r.data!, flush: true);
|
||||
} else {
|
||||
throw "statusCode Error : ${r.statusCode}";
|
||||
}
|
||||
|
@ -38,4 +38,4 @@ class PartyRoomUI extends HookConsumerWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user