Add some delayed saves and UI for that.

This commit is contained in:
Ottermandias 2023-05-09 17:15:19 +02:00
parent e8eff51d84
commit 5ba43c1b19
9 changed files with 58 additions and 20 deletions

View file

@ -170,7 +170,7 @@ public class ActiveCollections : ISavable, IDisposable
public void MoveIndividualCollection(int from, int to)
{
if (Individuals.Move(from, to))
_saveService.QueueSave(this);
_saveService.DelaySave(this);
}
/// <summary> Set and create an active collection, can be used to set Default, Current, Interface, Special, or Individual collections. </summary>
@ -318,7 +318,7 @@ public class ActiveCollections : ISavable, IDisposable
}
else if (collectionType is not CollectionType.Temporary)
{
_saveService.QueueSave(this);
_saveService.DelaySave(this);
}
}