chore: reset selectedComicOpened when currentComicId changed
This commit is contained in:
parent
edb3338bc4
commit
f0ff3da067
@ -27,6 +27,10 @@ AppController::AppController(QObject *parent)
|
||||
m_librariesModel->setItemRoleNames(LibraryItem::roleNames());
|
||||
m_comicsModel->setItemRoleNames(ComicItem::roleNames());
|
||||
m_foldersModel->setItemRoleNames(FolderItem::roleNames());
|
||||
connect(this, &AppController::currentComicIdChanged, this, [this](){
|
||||
// "selected" is "current"
|
||||
setProperty("selectedComicOpened", false);
|
||||
});
|
||||
}
|
||||
|
||||
void AppController::connectServer(QUrl serverBaseUrl)
|
||||
|
Loading…
Reference in New Issue
Block a user