From: Christian Kamm Date: Tue, 24 Jan 2017 09:26:03 +0000 (+0100) Subject: Folders: Adjust ui when account is disconnected #5477 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~875 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=26234dbf6c1e4f173e6e43ca8e7a9c67c1e5728b;p=nextcloud-desktop.git Folders: Adjust ui when account is disconnected #5477 Previously if you paused/unpaused a folder for a disconnected account they would prepare to sync and thus display the 'Waiting...' text. With this change, folders that can't possibly sync don't show text like this. When account connectivity changes, all unpaused folders will be scheduled anyway. --- diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 42b787d14..2aaa4658f 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -981,7 +981,7 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f) auto& pi = _folders[folderIndex]._progress; SyncResult::Status state = f->syncResult().status(); - if (f->syncPaused()) { + if (!f->canSync()) { // Reset progress info. pi = SubFolderInfo::Progress(); } else if (state == SyncResult::NotYetStarted) {