1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[KOE-115] Added check to sync stall detection to see if anything has synced. If not, it's considered a startup delay and doesn't trigger the warning

This commit is contained in:
Patrick Simpson 2017-06-14 09:38:46 +02:00
parent 862e0ddd04
commit 21c5da59e6

View File

@ -409,6 +409,11 @@ namespace Acacia.Features.SyncState
return !string.IsNullOrWhiteSpace(content.synckey); return !string.IsNullOrWhiteSpace(content.synckey);
} }
public bool HasAnythingSynced
{
get { return Done > 0; }
}
} }
private void CheckSyncState(ZPushAccount account) private void CheckSyncState(ZPushAccount account)
@ -503,7 +508,8 @@ namespace Acacia.Features.SyncState
if (folderId != null) if (folderId != null)
{ {
SyncSession sync = account.GetFeatureData<SyncSession>(this, null); SyncSession sync = account.GetFeatureData<SyncSession>(this, null);
if (sync.HasFolderSynced(folderId)) // If nothing has synced yet, it's probably just a delay
if (!sync.HasAnythingSynced || sync.HasFolderSynced(folderId))
return; return;
} }
} }