mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Add method to reload the continue reading list in FolderContentView
The reload is only triggered for the root folder.
This commit is contained in:
parent
901f05feb1
commit
6c575c1b71
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user