From 26234dbf6c1e4f173e6e43ca8e7a9c67c1e5728b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 24 Jan 2017 10:26:03 +0100 Subject: [PATCH] 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. --- src/gui/folderstatusmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2