From 4ee3d91bf4c3e6daee2540a2d3cbaf7b0fc9b944 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 22 Jan 2023 21:04:24 +0100 Subject: [PATCH] Fixed a crash on startup if no games were found. --- es-app/src/views/ViewController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 82270f0ea..37ca8ee66 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -1122,7 +1122,8 @@ void ViewController::preload() getGamelistView(*it)->preloadGamelist(); } - ThemeData::setThemeTransitions(); + if (SystemData::sSystemVector.size() > 0) + ThemeData::setThemeTransitions(); // Load navigation sounds, either from the theme if it supports it, or otherwise from // the bundled fallback sound files.