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:
parent
862e0ddd04
commit
21c5da59e6
@ -409,6 +409,11 @@ namespace Acacia.Features.SyncState
|
||||
|
||||
return !string.IsNullOrWhiteSpace(content.synckey);
|
||||
}
|
||||
|
||||
public bool HasAnythingSynced
|
||||
{
|
||||
get { return Done > 0; }
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckSyncState(ZPushAccount account)
|
||||
@ -503,7 +508,8 @@ namespace Acacia.Features.SyncState
|
||||
if (folderId != 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user