mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 12:05:39 +00:00
Fixed an issue where the navigation sounds were loaded multiple times on application startup.
This commit is contained in:
parent
b1dd2dd176
commit
8a60bf0877
|
@ -1151,7 +1151,7 @@ void ViewController::preload()
|
||||||
// the bundled fallback sound files.
|
// the bundled fallback sound files.
|
||||||
bool themeSoundSupport {false};
|
bool themeSoundSupport {false};
|
||||||
for (auto system : SystemData::sSystemVector) {
|
for (auto system : SystemData::sSystemVector) {
|
||||||
if (system->getTheme()->hasView("all")) {
|
if (!themeSoundSupport && system->getTheme()->hasView("all")) {
|
||||||
NavigationSounds::getInstance().loadThemeNavigationSounds(system->getTheme().get());
|
NavigationSounds::getInstance().loadThemeNavigationSounds(system->getTheme().get());
|
||||||
themeSoundSupport = true;
|
themeSoundSupport = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue