Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Fixed a case where invalid state could be achieved in the setup flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
PazerOP committed Jan 5, 2021
1 parent 106860c commit 44f678e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tf2_bot_detector/SetupFlow/CheckSteamOpenPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace

auto CheckSteamOpenPage::ValidateSettings(const Settings& settings) const -> ValidateSettingsResult
{
if (!Platform::Processes::IsSteamRunning() || !Platform::GetCurrentActiveSteamID().IsValid())
if (!Platform::Processes::IsSteamRunning())
return ValidateSettingsResult::TriggerOpen;

return ValidateSettingsResult::Success;
Expand All @@ -42,6 +42,8 @@ namespace
m_CanContinue = isSteamRunning;
if (isSteamRunning)
{
m_CanContinue = true;

if (Platform::GetCurrentActiveSteamID().IsValid())
{
return OnDrawResult::EndDrawing;
Expand All @@ -50,7 +52,6 @@ namespace
{
ImGui::NewLine();
ImGui::Text("Steam is open, but it might not be logged into an account yet.");
m_CanContinue = true;
}
}

Expand Down

0 comments on commit 44f678e

Please sign in to comment.