mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-24 23:14:49 -04:00
[EGD-3451] RequestRecordsCount refactor in whole project.
This commit is contained in:
committed by
PrzeBrudny
parent
02afbac399
commit
19e1ca696c
@@ -10,9 +10,10 @@ BaseThreadRecordModel::BaseThreadRecordModel(app::Application *app) : DatabaseMo
|
||||
requestRecordsCount();
|
||||
}
|
||||
|
||||
void BaseThreadRecordModel::requestRecordsCount(void)
|
||||
unsigned int BaseThreadRecordModel::requestRecordsCount()
|
||||
{
|
||||
recordsCount = DBServiceAPI::ThreadGetCount(application);
|
||||
return recordsCount;
|
||||
}
|
||||
|
||||
bool BaseThreadRecordModel::updateRecords(std::unique_ptr<std::vector<ThreadRecord>> records,
|
||||
@@ -21,7 +22,6 @@ bool BaseThreadRecordModel::updateRecords(std::unique_ptr<std::vector<ThreadReco
|
||||
uint32_t count)
|
||||
{
|
||||
DatabaseModel::updateRecords(std::move(records), offset, limit, count);
|
||||
modelIndex = 0;
|
||||
list->onProviderDataUpdate();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user