@@ -312,6 +312,7 @@ void ownCloudGui::slotComputeOverallSyncStatus()
312
312
QList<QString> problemFileProviderAccounts;
313
313
QList<QString> syncingFileProviderAccounts;
314
314
QList<QString> successFileProviderAccounts;
315
+ QList<QString> idleFileProviderAccounts;
315
316
316
317
if (Mac::FileProvider::fileProviderAvailable ()) {
317
318
for (const auto &accountState : AccountManager::instance ()->accounts ()) {
@@ -328,6 +329,7 @@ void ownCloudGui::slotComputeOverallSyncStatus()
328
329
switch (const auto latestStatus = fileProvider->socketServer ()->latestReceivedSyncStatusForAccount (accountState->account ())) {
329
330
case SyncResult::Undefined:
330
331
case SyncResult::NotYetStarted:
332
+ idleFileProviderAccounts.append (accountFpId);
331
333
break ;
332
334
case SyncResult::SyncPrepare:
333
335
case SyncResult::SyncRunning:
@@ -342,7 +344,7 @@ void ownCloudGui::slotComputeOverallSyncStatus()
342
344
case SyncResult::SetupError:
343
345
problemFileProviderAccounts.append (accountFpId);
344
346
break ;
345
- case SyncResult::Paused:
347
+ case SyncResult::Paused: // This is not technically possible with VFS
346
348
break ;
347
349
}
348
350
}
@@ -404,7 +406,7 @@ void ownCloudGui::slotComputeOverallSyncStatus()
404
406
overallStatus != SyncResult::Error &&
405
407
overallStatus != SyncResult::SetupError) {
406
408
overallStatus = SyncResult::SyncRunning;
407
- } else if (!successFileProviderAccounts.isEmpty () &&
409
+ } else if (( !successFileProviderAccounts.isEmpty () || (problemFileProviderAccounts. isEmpty () && syncingFileProviderAccounts. isEmpty () && !idleFileProviderAccounts. isEmpty ()) ) &&
408
410
overallStatus != SyncResult::SyncRunning &&
409
411
overallStatus != SyncResult::Problem &&
410
412
overallStatus != SyncResult::Error &&
0 commit comments