connect(folderMan, SIGNAL(folderListLoaded(Folder::Map)),
this, SLOT(setFolderList(Folder::Map)));
setFolderList(FolderMan::instance()->map());
+
+ _lastProgressUpdate.start();
}
void AccountSettings::slotAccountStateChanged(AccountState *newAccountState)
return;
}
+ // Don't update progess too often.
+ const int msBetweenProgressUpdates = 500;
+ if (_lastProgressUpdate.elapsed() < msBetweenProgressUpdates) {
+ qDebug() << "skip progress";
+ return;
+ }
+ _lastProgressUpdate.restart();
+
+
if(!progress._lastCompletedItem.isEmpty()
&& Progress::isWarningKind(progress._lastCompletedItem._status)) {
int warnCount = item->data(FolderStatusDelegate::WarningCount).toInt();
QStringList _generalErrors;
bool _wasDisabledBefore;
AccountState *_accountState;
+ QElapsedTimer _lastProgressUpdate;
private slots:
void slotFolderSyncStateChange();
void slotAccountStateChanged(AccountState*);