mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-15 02:01:38 +03:00
Revert "AccountSettings: Update progress only twice per second. #3014"
This reverts commit 0f33e266ce
.
The change was not meant to be merged, see discussion in #3014.
This commit is contained in:
parent
96ecdb866d
commit
68bf22f469
2 changed files with 0 additions and 12 deletions
|
@ -119,8 +119,6 @@ AccountSettings::AccountSettings(QWidget *parent) :
|
|||
connect(folderMan, SIGNAL(folderListLoaded(Folder::Map)),
|
||||
this, SLOT(setFolderList(Folder::Map)));
|
||||
setFolderList(FolderMan::instance()->map());
|
||||
|
||||
_lastProgressUpdate.start();
|
||||
}
|
||||
|
||||
void AccountSettings::slotAccountStateChanged(AccountState *newAccountState)
|
||||
|
@ -609,15 +607,6 @@ void AccountSettings::slotSetProgress(const QString& folder, const ProgressInfo
|
|||
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();
|
||||
|
|
|
@ -98,7 +98,6 @@ private:
|
|||
QStringList _generalErrors;
|
||||
bool _wasDisabledBefore;
|
||||
AccountState *_accountState;
|
||||
QElapsedTimer _lastProgressUpdate;
|
||||
private slots:
|
||||
void slotFolderSyncStateChange();
|
||||
void slotAccountStateChanged(AccountState*);
|
||||
|
|
Loading…
Reference in a new issue