mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Fix syncEnable in folder and folderman.
This commit is contained in:
parent
363efaa408
commit
ee840b62e5
2 changed files with 2 additions and 2 deletions
|
@ -197,9 +197,8 @@ void Folder::setSyncEnabled( bool doit )
|
|||
{
|
||||
_enabled = doit;
|
||||
|
||||
qDebug() << "setSyncEnabled - ############################ " << doit;
|
||||
if( doit ) {
|
||||
evaluateSync( QStringList() );
|
||||
// qDebug() << "Syncing enabled on folder " << name();
|
||||
} else {
|
||||
// do not stop or start the watcher here, that is done internally by
|
||||
// folder class. Even if the watcher fires, the folder does not
|
||||
|
|
|
@ -280,6 +280,7 @@ void FolderMan::slotEnableFolder( const QString& alias, bool enable )
|
|||
Folder *f = _folderMap[alias];
|
||||
if( f ) {
|
||||
f->setSyncEnabled(enable);
|
||||
f->evaluateSync(QStringList());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue