mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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;
|
return comicsViewStack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void YACReaderContentViewsManager::updateCurrentContentView()
|
||||||
|
{
|
||||||
|
if (comicsViewStack->currentWidget() == comicsView) {
|
||||||
|
comicsView->reloadContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (comicsViewStack->currentWidget() == folderContentView) {
|
||||||
|
folderContentView->reloadContent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void YACReaderContentViewsManager::updateCurrentComicView()
|
void YACReaderContentViewsManager::updateCurrentComicView()
|
||||||
{
|
{
|
||||||
if (comicsViewStack->currentWidget() == comicsView) {
|
if (comicsViewStack->currentWidget() == comicsView) {
|
||||||
|
@ -39,6 +39,7 @@ public:
|
|||||||
|
|
||||||
NoSearchResultsWidget *noSearchResultsWidget;
|
NoSearchResultsWidget *noSearchResultsWidget;
|
||||||
|
|
||||||
|
void updateCurrentContentView();
|
||||||
void updateCurrentComicView();
|
void updateCurrentComicView();
|
||||||
void updateContinueReadingView();
|
void updateContinueReadingView();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user