Skip to content

Commit

Permalink
gui/tray: Ensure file provider sync state is correctly restored on tr…
Browse files Browse the repository at this point in the history
…ay open

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra authored and mgallien committed Feb 18, 2025
1 parent 5c0fa58 commit 746e349
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gui/tray/syncstatussummary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,15 @@ void SyncStatusSummary::initSyncState()
syncStateFallbackNeeded = false;
}

#ifdef BUILD_FILE_PROVIDER_MODULE
const auto accounts = AccountManager::instance()->accounts();
for (const auto &accountState : accounts) {
const auto account = accountState->account();
onFileProviderDomainSyncStateChanged(account, Mac::FileProvider::instance()->socketServer()->latestReceivedSyncStatusForAccount(account));
syncStateFallbackNeeded = false;
}
#endif

if (syncStateFallbackNeeded) {
setSyncStateToConnectedState();
}
Expand Down

0 comments on commit 746e349

Please sign in to comment.