mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 13:26:58 +03:00
GH-1697 always stale files tolerate errors if a local copy is present
This fixes the situation when liteloader snapshot site is broken and there's an older local snapshot already present.
This commit is contained in:
parent
3d94fb8d24
commit
dd0e996081
10 changed files with 64 additions and 11 deletions
|
|
@ -56,4 +56,10 @@ JobStatus MetaCacheSink::finalizeCache(QNetworkReply & reply)
|
|||
ENV.metacache()->updateEntry(m_entry);
|
||||
return Job_Finished;
|
||||
}
|
||||
|
||||
bool MetaCacheSink::hasLocalData()
|
||||
{
|
||||
QFileInfo info(m_filename);
|
||||
return info.exists() && info.size() != 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue