Expose max activities in TestingALM

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-01 14:45:25 +01:00
parent 26777175b7
commit b3f209e6fe
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -77,6 +77,10 @@ class TestingALM : public OCC::ActivityListModel
public:
TestingALM() = default;
int maxActivities() const { return _maxActivities; };
// Need to include the dummy "show more in activities app" activity
int maxPossibleActivities() const { return maxActivities() + 1; }
public slots:
void startFetchJob() override;
void startMaxActivitiesFetchJob();