mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Add method to YACReaderContentViewsManager to update the current content view
This commit is contained in:
parent
80ff6ed63b
commit
7aac11483e
@ -67,6 +67,17 @@ QWidget *YACReaderContentViewsManager::containerWidget()
|
||||
return comicsViewStack;
|
||||
}
|
||||
|
||||
void YACReaderContentViewsManager::updateCurrentContentView()
|
||||
{
|
||||
if (comicsViewStack->currentWidget() == comicsView) {
|
||||
comicsView->reloadContent();
|
||||
}
|
||||
|
||||
if (comicsViewStack->currentWidget() == folderContentView) {
|
||||
folderContentView->reloadContent();
|
||||
}
|
||||
}
|
||||
|
||||
void YACReaderContentViewsManager::updateCurrentComicView()
|
||||
{
|
||||
if (comicsViewStack->currentWidget() == comicsView) {
|
||||
|
@ -39,6 +39,7 @@ public:
|
||||
|
||||
NoSearchResultsWidget *noSearchResultsWidget;
|
||||
|
||||
void updateCurrentContentView();
|
||||
void updateCurrentComicView();
|
||||
void updateContinueReadingView();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user