mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Folderman: Remove one call to updateFolderView.
The reason is that updateFolderView is invoked by the emitted signal folderSyncStateChange() anyway. This will reduce the traffic over the SocketAPI nicely, maybe this was the reason why it was slower than before.
This commit is contained in:
parent
8eb53fa9ae
commit
12330b38e9
2 changed files with 1 additions and 6 deletions
|
@ -469,11 +469,6 @@ void FolderMan::slotScheduleSync( Folder *f )
|
|||
}
|
||||
auto alias = f->alias();
|
||||
|
||||
// We want the SocketAPI to already now update so that it can show the EVAL icon
|
||||
// for files/folders. Only do this when not syncing, else we might get a lot
|
||||
// of those notifications.
|
||||
_socketApi->slotUpdateFolderView(f);
|
||||
|
||||
qDebug() << "Schedule folder " << alias << " to sync!";
|
||||
|
||||
if( ! _scheduleQueue.contains(f) ) {
|
||||
|
|
|
@ -286,7 +286,7 @@ void SocketApi::command_RETRIEVE_FILE_STATUS(const QString& argument, QIODevice*
|
|||
Folder* syncFolder = FolderMan::instance()->folderForPath( argument );
|
||||
if (!syncFolder) {
|
||||
// this can happen in offline mode e.g.: nothing to worry about
|
||||
DEBUG << "folder offline or not watched:" << argument;
|
||||
// DEBUG << "folder offline or not watched:" << argument;
|
||||
statusString = QLatin1String("NOP");
|
||||
} else {
|
||||
const QString file = QDir::cleanPath(argument).mid(syncFolder->cleanPath().length()+1);
|
||||
|
|
Loading…
Reference in a new issue