fix: implicit hydration will not abort synchronization

should avoid constant sync/abort loop for people having many files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2025-07-09 19:11:43 +02:00 committed by Jyrki Gadinger
parent 34082271b6
commit ff7109e61b

View File

@ -1585,19 +1585,19 @@ void Folder::slotWatcherUnreliable(const QString &message)
void Folder::slotHydrationStarts()
{
// Abort any running full sync run and reschedule
if (_engine->isSyncRunning()) {
setSilenceErrorsUntilNextSync(true);
slotTerminateSync();
scheduleThisFolderSoon();
// TODO: This sets the sync state to AbortRequested on done, we don't want that
}
// // Abort any running full sync run and reschedule
// if (_engine->isSyncRunning()) {
// setSilenceErrorsUntilNextSync(true);
// slotTerminateSync();
// scheduleThisFolderSoon();
// // TODO: This sets the sync state to AbortRequested on done, we don't want that
// }
// Let everyone know we're syncing
_syncResult.reset();
_syncResult.setStatus(SyncResult::SyncRunning);
emit syncStarted();
emit syncStateChange();
// // Let everyone know we're syncing
// _syncResult.reset();
// _syncResult.setStatus(SyncResult::SyncRunning);
// emit syncStarted();
// emit syncStateChange();
}
void Folder::slotHydrationDone()