Save progress when interrupted
This commit is contained in:
parent
5f6c087097
commit
b4ce27a1b9
5 changed files with 40 additions and 1 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue