savestate

This commit is contained in:
Ben 2024-11-26 16:23:56 +01:00
parent 529d48a758
commit f18ff24bb6
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,7 @@ namespace AutoClient.Modes.FolderStore
onFileUploaded();
Log("Got CID: " + cid);
State.Cid = cid.Id;
SaveState();
Thread.Sleep(1000);
}
}
@ -201,6 +202,7 @@ namespace AutoClient.Modes.FolderStore
Pid = response
};
State.Purchases = State.Purchases.Concat([newPurchase]).ToArray();
SaveState();
Log($"New purchase created. PID: '{response}'. Waiting for submit...");
Thread.Sleep(500);