fix: expose gamesListWidget from GameLibraryManager to fix gamepad navigation

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-10-06 13:20:05 +05:00
parent 65b43c1572
commit 8fd44c575b
3 changed files with 5 additions and 0 deletions

View File

@@ -597,6 +597,9 @@ class InputManager(QObject):
def handle_dpad_slot(self, code: int, value: int, current_time: float) -> None:
if not self._gamepad_handling_enabled:
return
if not hasattr(self._parent, 'gamesListWidget') or self._parent.gamesListWidget is None:
logger.error("gamesListWidget not available yet, skipping D-pad navigation")
return
try:
app = QApplication.instance()