mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Revert "Re-sync immediatly after "Keep files" when all files were removed"
This causes infinite sync loops
This reverts commit 8b469d3992
.
This commit is contained in:
parent
adfb163593
commit
f40a054cb7
2 changed files with 4 additions and 3 deletions
|
@ -689,9 +689,6 @@ void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction direction, bool *
|
|||
*cancel = msgBox.clickedButton() == keepBtn;
|
||||
if (*cancel) {
|
||||
wipe();
|
||||
_lastEtag = QString();
|
||||
// speed up next sync
|
||||
FolderMan::instance()->slotScheduleSync(_alias);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -395,6 +395,10 @@ void FolderMan::slotScheduleSync( const QString& alias )
|
|||
{
|
||||
if( alias.isEmpty() ) return;
|
||||
|
||||
if( _currentSyncFolder == alias ) {
|
||||
qDebug() << " the current folder is currently syncing.";
|
||||
return;
|
||||
}
|
||||
qDebug() << "Schedule folder " << alias << " to sync!";
|
||||
|
||||
if( ! _scheduleQueue.contains(alias ) && _folderMap.contains(alias) ) {
|
||||
|
|
Loading…
Reference in a new issue