Detecting changes task indication

This commit is contained in:
Aurélie Delhaie
2022-06-13 18:09:29 +02:00
parent acee2b1c6a
commit 4628cacc0b
6 changed files with 7 additions and 1 deletions

View File

@@ -51,13 +51,16 @@ namespace OpenSaveCloudClient
}
else
{
string taskUuid = StartTask("Detecting changes...", true, 1);
try
{
saveManager.DetectChanges();
SetTaskEnded(taskUuid);
}
catch (Exception e)
{
logManager.AddError(e);
SetTaskFailed(taskUuid);
}
this.Invoke((MethodInvoker)delegate {
SetAdminControls();
@@ -122,13 +125,16 @@ namespace OpenSaveCloudClient
{
new Thread(() =>
{
string taskUuid = StartTask("Detecting changes...", true, 1);
try
{
saveManager.DetectChanges();
SetTaskEnded(taskUuid);
}
catch (Exception e)
{
logManager.AddError(e);
SetTaskFailed(taskUuid);
}
}).Start();
SetAdminControls();