Detecting changes task indication
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -51,13 +51,16 @@ namespace OpenSaveCloudClient
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
string taskUuid = StartTask("Detecting changes...", true, 1);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
saveManager.DetectChanges();
|
saveManager.DetectChanges();
|
||||||
|
SetTaskEnded(taskUuid);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
logManager.AddError(e);
|
logManager.AddError(e);
|
||||||
|
SetTaskFailed(taskUuid);
|
||||||
}
|
}
|
||||||
this.Invoke((MethodInvoker)delegate {
|
this.Invoke((MethodInvoker)delegate {
|
||||||
SetAdminControls();
|
SetAdminControls();
|
||||||
@@ -122,13 +125,16 @@ namespace OpenSaveCloudClient
|
|||||||
{
|
{
|
||||||
new Thread(() =>
|
new Thread(() =>
|
||||||
{
|
{
|
||||||
|
string taskUuid = StartTask("Detecting changes...", true, 1);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
saveManager.DetectChanges();
|
saveManager.DetectChanges();
|
||||||
|
SetTaskEnded(taskUuid);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
logManager.AddError(e);
|
logManager.AddError(e);
|
||||||
|
SetTaskFailed(taskUuid);
|
||||||
}
|
}
|
||||||
}).Start();
|
}).Start();
|
||||||
SetAdminControls();
|
SetAdminControls();
|
||||||
|
|||||||
Reference in New Issue
Block a user