mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Current comic view only makes sense for folders and reading lists.
This commit is contained in:
@ -455,7 +455,13 @@ void GridComicsView::setCurrentComicIfNeeded()
|
||||
|
||||
QQmlContext *ctxt = view->rootContext();
|
||||
|
||||
if (found && filterEnabled == false) {
|
||||
ComicModel::Mode mode = model->getMode();
|
||||
|
||||
bool showCurrentComic = found &&
|
||||
filterEnabled == false &&
|
||||
(mode == ComicModel::Mode::Folder || mode == ComicModel::Mode::ReadingList);
|
||||
|
||||
if (showCurrentComic) {
|
||||
ctxt->setContextProperty("currentComic", ¤tComic);
|
||||
ctxt->setContextProperty("currentComicInfo", &(currentComic.info));
|
||||
ctxt->setContextProperty("showCurrentComic", true);
|
||||
|
Reference in New Issue
Block a user