diff --git a/src/qml/LibraryView.qml b/src/qml/LibraryView.qml index 261ecf9..b49f828 100644 --- a/src/qml/LibraryView.qml +++ b/src/qml/LibraryView.qml @@ -96,6 +96,16 @@ FocusScope { }) } + Connections { + target: proxyModel + function onCountChanged() { + if (proxyModel.count > 0) { + let g = proxyModel.get(grid.currentIndex) + if (g) libraryRoot.gameFocused(g) + } + } + } + delegate: GameCard { game: model.gameObject gridActive: grid.flickable ? grid.flickable.activeFocus : grid.activeFocus