mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
ActivityWidget: Always combine the final activity list.
In cases where the activity app is not activated on the server, the returned list of activities is empty, so it is better this way.
This commit is contained in:
parent
7ba88cc9e3
commit
1cdf0e8597
1 changed files with 2 additions and 14 deletions
|
@ -151,6 +151,7 @@ void ActivityListModel::startFetchJob(AccountState* s)
|
|||
job->addQueryParams(params);
|
||||
|
||||
_currentlyFetching.insert(s);
|
||||
qDebug() << "Start fetching activities for " << s->account()->displayName();
|
||||
job->start();
|
||||
}
|
||||
|
||||
|
@ -179,20 +180,7 @@ void ActivityListModel::slotActivitiesReceived(const QVariantMap& json)
|
|||
|
||||
_activityLists[ai] = list;
|
||||
|
||||
// if all activity lists were received, assemble the whole list
|
||||
// otherwise wait until the others are finished
|
||||
bool allAreHere = true;
|
||||
foreach( ActivityList list, _activityLists.values() ) {
|
||||
if( list.count() == 0 ) {
|
||||
allAreHere = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: Be more efficient,
|
||||
if( allAreHere ) {
|
||||
combineActivityLists();
|
||||
}
|
||||
combineActivityLists();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue