Wait for saves to finish when the file might be read immediately after saving.

This commit is contained in:
Ottermandias 2023-12-10 15:10:43 +01:00
parent a9f36c6aef
commit bb742463e9
6 changed files with 10 additions and 9 deletions

View file

@ -82,7 +82,7 @@ public class DuplicateManager
{
var sub = (SubMod)subMod;
sub.FileData = dict;
_saveService.ImmediateSave(new ModSaveGroup(mod, groupIdx));
_saveService.ImmediateSaveSync(new ModSaveGroup(mod, groupIdx));
}
}