Add method to reload the continue reading list in FolderContentView

The reload is only triggered for the root folder.
This commit is contained in:
Luis Ángel San Martín 2022-10-14 20:54:52 +02:00
parent 901f05feb1
commit 6c575c1b71
2 changed files with 8 additions and 0 deletions

View File

@ -198,6 +198,13 @@ void FolderContentView::setContinueReadingModel(ComicModel *model)
}
}
void FolderContentView::reloadContinueReadingModel()
{
if (!folderModel->isSubfolder) {
comicModel->reloadContinueReading();
}
}
void FolderContentView::openFolder(int index)
{
emit subfolderSelected(this->parent, index);

View File

@ -22,6 +22,7 @@ public:
explicit FolderContentView(QWidget *parent = nullptr);
void setModel(const QModelIndex &parent, FolderModel *model);
void setContinueReadingModel(ComicModel *model);
void reloadContinueReadingModel();
FolderModel *currentFolderModel() { return folderModel; }
signals: