Fixed an issue where attempting to open the menu during startup would crash the application.

This commit is contained in:
Leon Styhre 2023-02-27 20:16:23 +01:00
parent aec26843ef
commit 11faacb43a

View file

@ -1015,7 +1015,7 @@ bool ViewController::input(InputConfig* config, Input input)
// Open the main menu.
if (!(UIModeController::getInstance()->isUIModeKid() &&
!Settings::getInstance()->getBool("EnableMenuKidMode")) &&
config->isMappedTo("start", input) && input.value != 0) {
config->isMappedTo("start", input) && input.value != 0 && mCurrentView != nullptr) {
// If we don't stop the scrolling here, it will continue to
// run after closing the menu.
if (mSystemListView->isScrolling())