From 3cb99bcf0ff44c1313521181d12d883144c8d665 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 20 Jan 2023 10:59:21 +0100 Subject: [PATCH] Fix display bug with the environment warning --- source/UpdaterCheckEnvironment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/UpdaterCheckEnvironment.cpp b/source/UpdaterCheckEnvironment.cpp index bd7d0f4..75d8834 100644 --- a/source/UpdaterCheckEnvironment.cpp +++ b/source/UpdaterCheckEnvironment.cpp @@ -19,6 +19,7 @@ ApplicationState::eSubState UpdaterState::UpdateGetEnvironmentDirectory(Input *i ApplicationState::eSubState UpdaterState::UpdateCheckEnvironmentDirectory(Input *input) { if (this->mCurEnvironmentPath == DEFAULT_AROMA_ENVIRONMENT_SD_PATH) { this->mState = STATE_CHECK_VERSIONS; + return SUBSTATE_RUNNING; } if (buttonPressed(input, Input::BUTTON_A)) { std::string sNeedle = DEFAULT_AROMA_ENVIRONMENT_PATH; @@ -53,7 +54,7 @@ ApplicationState::eSubState UpdaterState::UpdateCheckEnvironmentDirectory(Input } void UpdaterState::RenderCheckEnvironmentDirectory() { - if (this->mCurEnvironmentPath != DEFAULT_AROMA_ENVIRONMENT_PATH) { + if (!this->mCurEnvironmentPath.empty() && this->mCurEnvironmentPath != DEFAULT_AROMA_ENVIRONMENT_SD_PATH) { DrawUtils::setFontColor(COLOR_RED); DrawUtils::setFontSize(30); DrawUtils::print(16, 90, "Warning");