From 8a60bf0877b615ff37fd24b6994228554ec776d3 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 11 Feb 2023 12:46:59 +0100 Subject: [PATCH] Fixed an issue where the navigation sounds were loaded multiple times on application startup. --- es-app/src/views/ViewController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 32e31a877..98c2a65df 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -1151,7 +1151,7 @@ void ViewController::preload() // the bundled fallback sound files. bool themeSoundSupport {false}; for (auto system : SystemData::sSystemVector) { - if (system->getTheme()->hasView("all")) { + if (!themeSoundSupport && system->getTheme()->hasView("all")) { NavigationSounds::getInstance().loadThemeNavigationSounds(system->getTheme().get()); themeSoundSupport = true; }