mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
lib download error logging
This commit is contained in:
parent
3098273a33
commit
5b4494fda2
|
|
@ -249,7 +249,11 @@ public class ApplicationViewModel : ViewModel
|
|||
|
||||
if (!File.Exists(oodlePath))
|
||||
{
|
||||
await OodleHelper.DownloadOodleDllAsync(oodlePath);
|
||||
if (!await OodleHelper.DownloadOodleDllAsync(oodlePath))
|
||||
{
|
||||
FLogger.Append(ELog.Error, () => FLogger.Text("Failed to download Oodle", Constants.WHITE, true));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
OodleHelper.Initialize(oodlePath);
|
||||
|
|
@ -262,7 +266,11 @@ public class ApplicationViewModel : ViewModel
|
|||
|
||||
if (!zlibFileInfo.Exists || zlibFileInfo.LastWriteTimeUtc < DateTime.UtcNow.AddMonths(-4))
|
||||
{
|
||||
await ZlibHelper.DownloadDllAsync(zlibPath);
|
||||
if (!await ZlibHelper.DownloadDllAsync(zlibPath))
|
||||
{
|
||||
FLogger.Append(ELog.Error, () => FLogger.Text("Failed to download Zlib-ng", Constants.WHITE, true));
|
||||
if (!zlibFileInfo.Exists) return;
|
||||
}
|
||||
}
|
||||
|
||||
ZlibHelper.Initialize(zlibPath);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user