mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Update if needed the continue reading list whenever we get an update about a comic
This commit is contained in:
parent
6c575c1b71
commit
f4656ad210
@ -2823,6 +2823,7 @@ void LibraryWindow::updateComicsView(quint64 libraryId, const ComicDB &comic)
|
||||
if (libraryId == (quint64)libraries.getId(selectedLibrary->currentText())) {
|
||||
comicsModel->reload(comic);
|
||||
contentViewsManager->updateCurrentComicView();
|
||||
contentViewsManager->updateContinueReadingView();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,13 @@ void YACReaderContentViewsManager::updateCurrentComicView()
|
||||
}
|
||||
}
|
||||
|
||||
void YACReaderContentViewsManager::updateContinueReadingView()
|
||||
{
|
||||
if (comicsViewStack->currentWidget() == folderContentView) {
|
||||
folderContentView->reloadContinueReadingModel();
|
||||
}
|
||||
}
|
||||
|
||||
void YACReaderContentViewsManager::showComicsView()
|
||||
{
|
||||
comicsViewStack->setCurrentWidget(comicsView);
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
NoSearchResultsWidget *noSearchResultsWidget;
|
||||
|
||||
void updateCurrentComicView();
|
||||
void updateContinueReadingView();
|
||||
|
||||
protected:
|
||||
QStackedWidget *comicsViewStack;
|
||||
|
Loading…
Reference in New Issue
Block a user