mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Add setting to hide the "Continue Reading..." banner from the home view.
This commit is contained in:
@ -163,7 +163,8 @@ FolderContentView::FolderContentView(QAction *toogleRecentVisibilityAction, QWid
|
||||
ctxt->setContextProperty("comicsList", comicModel.get());
|
||||
ctxt->setContextProperty("foldersList", folderModel);
|
||||
|
||||
ctxt->setContextProperty("showCurrentComic", QVariant(false));
|
||||
auto showContinueReading = settings->value(DISPLAY_GLOBAL_CONTINUE_READING_IN_GRID_VIEW, true).toBool();
|
||||
ctxt->setContextProperty("showContinueReading", QVariant(showContinueReading));
|
||||
|
||||
ctxt->setContextProperty("openHelper", this);
|
||||
ctxt->setContextProperty("dropManager", this);
|
||||
@ -229,6 +230,14 @@ void FolderContentView::setRecentRange(int days)
|
||||
folderModel->setRecentRange(days);
|
||||
}
|
||||
|
||||
void FolderContentView::updateSettings()
|
||||
{
|
||||
QQmlContext *ctxt = view->rootContext();
|
||||
|
||||
auto showContinueReading = settings->value(DISPLAY_GLOBAL_CONTINUE_READING_IN_GRID_VIEW, true).toBool();
|
||||
ctxt->setContextProperty("showContinueReading", QVariant(showContinueReading));
|
||||
}
|
||||
|
||||
void FolderContentView::openFolder(int index)
|
||||
{
|
||||
emit subfolderSelected(this->parent, index);
|
||||
|
Reference in New Issue
Block a user