[EGD-3451] RequestRecordsCount refactor in whole project.

This commit is contained in:
Przemyslaw Brudny
2020-08-04 17:41:34 +02:00
committed by PrzeBrudny
parent 02afbac399
commit 19e1ca696c
38 changed files with 61 additions and 131 deletions

View File

@@ -63,10 +63,7 @@ namespace gui
void NotesMainWindow::onBeforeShow(ShowMode mode, SwitchData *data)
{
notesModel->clear();
notesModel->requestRecordsCount();
list->clear();
list->setElementsCount(notesModel->getItemCount());
list->rebuildList();
}
bool NotesMainWindow::onInput(const InputEvent &inputEvent)