mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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)
|
void FolderContentView::openFolder(int index)
|
||||||
{
|
{
|
||||||
emit subfolderSelected(this->parent, index);
|
emit subfolderSelected(this->parent, index);
|
||||||
|
@ -22,6 +22,7 @@ public:
|
|||||||
explicit FolderContentView(QWidget *parent = nullptr);
|
explicit FolderContentView(QWidget *parent = nullptr);
|
||||||
void setModel(const QModelIndex &parent, FolderModel *model);
|
void setModel(const QModelIndex &parent, FolderModel *model);
|
||||||
void setContinueReadingModel(ComicModel *model);
|
void setContinueReadingModel(ComicModel *model);
|
||||||
|
void reloadContinueReadingModel();
|
||||||
|
|
||||||
FolderModel *currentFolderModel() { return folderModel; }
|
FolderModel *currentFolderModel() { return folderModel; }
|
||||||
signals:
|
signals:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user