Save progress when interrupted

This commit is contained in:
mtkennerly 2024-04-20 20:50:10 -04:00
parent 5f6c087097
commit b4ce27a1b9
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
5 changed files with 40 additions and 1 deletions

View file

@ -3,6 +3,7 @@ use std::{collections::BTreeMap, process::Command};
use crate::{
manifest::{placeholder, Os},
resource::ResourceFile,
should_cancel,
wiki::WikiCache,
Error, State, REPO,
};
@ -36,6 +37,10 @@ impl SteamCache {
});
for app_id in app_ids {
if should_cancel() {
break;
}
let latest = SteamCacheEntry::fetch_from_id(app_id)?;
self.0.insert(
app_id,