From 227ec9d2b6fb0322d176a72831a1780b7d8cbf9b Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Tue, 27 Sep 2016 11:47:31 +0200 Subject: [PATCH] Triggering events should be at a minimum index of 0. This fixes the bug where onIdle events on the main page were not started until after scrolling the menu or entering a collection. --- RetroFE/Source/Graphics/Component/Component.cpp | 2 +- RetroFE/Source/Version.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Graphics/Component/Component.cpp b/RetroFE/Source/Graphics/Component/Component.cpp index ede499b..e196c82 100644 --- a/RetroFE/Source/Graphics/Component/Component.cpp +++ b/RetroFE/Source/Graphics/Component/Component.cpp @@ -93,7 +93,7 @@ void Component::triggerEvent(std::string event, int menuIndex) { animationRequestedType_ = event; animationRequested_ = true; - menuIndex_ = menuIndex; + menuIndex_ = (menuIndex > 0 ? menuIndex : 0); } void Component::setPlaylist(std::string name) diff --git a/RetroFE/Source/Version.cpp b/RetroFE/Source/Version.cpp index fd03b12..da7ab3f 100644 --- a/RetroFE/Source/Version.cpp +++ b/RetroFE/Source/Version.cpp @@ -20,7 +20,7 @@ std::string retrofe_version_major = "0"; std::string retrofe_version_minor = "7"; -std::string retrofe_version_build = "17"; +std::string retrofe_version_build = "18"; std::string Version::getString()