mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Add method to FolderContentView to reload its contents
This commit is contained in:
parent
b2d48a77ca
commit
80ff6ed63b
@ -203,6 +203,12 @@ void FolderContentView::setContinueReadingModel(ComicModel *model)
|
||||
}
|
||||
}
|
||||
|
||||
void FolderContentView::reloadContent()
|
||||
{
|
||||
folderModel->reload();
|
||||
reloadContinueReadingModel();
|
||||
}
|
||||
|
||||
void FolderContentView::reloadContinueReadingModel()
|
||||
{
|
||||
if (!folderModel->isSubfolder) {
|
||||
|
@ -22,6 +22,7 @@ public:
|
||||
explicit FolderContentView(QAction *toogleRecentVisibilityAction, QWidget *parent = nullptr);
|
||||
void setModel(const QModelIndex &parent, FolderModel *model);
|
||||
void setContinueReadingModel(ComicModel *model);
|
||||
void reloadContent();
|
||||
void reloadContinueReadingModel();
|
||||
void setShowRecent(bool visible);
|
||||
void setRecentRange(int days);
|
||||
|
Loading…
Reference in New Issue
Block a user